From a9d8b2e6a4c45a62ae0b5cbf1e7682886f4360d1 Mon Sep 17 00:00:00 2001 From: jacquarg Date: Tue, 22 Mar 2022 09:36:01 +0100 Subject: Use system theme colors. #5082 --- .../e/privacycentralapp/features/dashboard/DashboardFragment.kt | 6 +++--- .../features/trackers/apptrackers/ToggleTrackersAdapter.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/src/main/java/foundation') diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt b/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt index 4d191bd..f0eda52 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt @@ -160,7 +160,7 @@ class DashboardFragment : binding.stateTrackers.setTextColor( getColor( requireContext(), - if (trackersEnabled) R.color.green_on + if (trackersEnabled) R.color.green_valid else R.color.red_off ) ) @@ -173,7 +173,7 @@ class DashboardFragment : binding.stateGeolocation.setTextColor( getColor( requireContext(), - if (geolocEnabled) R.color.green_on + if (geolocEnabled) R.color.green_valid else R.color.red_off ) ) @@ -194,7 +194,7 @@ class DashboardFragment : binding.stateIpAddress.setTextColor( getColor( requireContext(), - if (ipAddressEnabled) R.color.green_on + if (ipAddressEnabled) R.color.green_valid else R.color.red_off ) ) diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/ToggleTrackersAdapter.kt b/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/ToggleTrackersAdapter.kt index e77b61f..9ffdd12 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/ToggleTrackersAdapter.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/ToggleTrackersAdapter.kt @@ -52,7 +52,7 @@ class ToggleTrackersAdapter( spannable.setSpan(UnderlineSpan(), 0, spannable.length, 0) title.text = spannable } else { - title.setTextColor(ContextCompat.getColor(title.context, R.color.black)) + title.setTextColor(ContextCompat.getColor(title.context, R.color.primary_text)) title.text = text } -- cgit v1.2.1