diff options
author | jacquarg <guillaume.jacquart@hoodbrains.com> | 2022-03-22 09:36:01 +0100 |
---|---|---|
committer | jacquarg <guillaume.jacquart@hoodbrains.com> | 2022-03-22 09:36:01 +0100 |
commit | a9d8b2e6a4c45a62ae0b5cbf1e7682886f4360d1 (patch) | |
tree | a3020e8f9a8de56579530b90852ba804552284bb /app/src/main/java/foundation/e | |
parent | b18b3d06913cf1c2b792a26f5d37e6949af2cf60 (diff) |
Use system theme colors. #5082
Diffstat (limited to 'app/src/main/java/foundation/e')
2 files changed, 4 insertions, 4 deletions
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 } |