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 --- .../features/dashboard/DashboardFragment.kt | 6 +- .../trackers/apptrackers/ToggleTrackersAdapter.kt | 2 +- app/src/main/res/drawable/bg_graph_bar.xml | 20 ------ app/src/main/res/drawable/bg_outlined.xml | 2 +- app/src/main/res/drawable/ic_body_monitor.xml | 19 ------ app/src/main/res/drawable/ic_calendar.xml | 10 --- app/src/main/res/drawable/ic_call.xml | 10 --- app/src/main/res/drawable/ic_location.xml | 10 --- app/src/main/res/layout/apptrackers_fragment.xml | 4 +- .../res/layout/dashboard_item_submenu_button.xml | 4 +- app/src/main/res/layout/fragment_dashboard.xml | 24 +++---- app/src/main/res/layout/fragment_fake_location.xml | 2 +- .../layout/fragment_internet_activity_policy.xml | 8 +-- .../main/res/layout/fragment_permission_apps.xml | 46 -------------- app/src/main/res/layout/fragment_permissions.xml | 57 ----------------- .../main/res/layout/fragment_quick_protection.xml | 70 --------------------- app/src/main/res/layout/fragment_trackers.xml | 2 +- .../res/layout/ipscrambling_item_app_toggle.xml | 1 - .../res/layout/ipscrambling_item_selectmode.xml | 2 +- app/src/main/res/layout/item_app_toggle.xml | 46 -------------- app/src/main/res/layout/item_permission.xml | 73 ---------------------- app/src/main/res/layout/topbar.xml | 2 +- app/src/main/res/layout/trackers_item_app.xml | 5 +- app/src/main/res/layout/trackers_item_graph.xml | 2 +- app/src/main/res/values/colors.xml | 35 ++++------- app/src/main/res/values/strings.xml | 2 +- app/src/main/res/values/themes.xml | 9 ++- 27 files changed, 49 insertions(+), 424 deletions(-) delete mode 100644 app/src/main/res/drawable/bg_graph_bar.xml delete mode 100644 app/src/main/res/drawable/ic_body_monitor.xml delete mode 100644 app/src/main/res/drawable/ic_calendar.xml delete mode 100644 app/src/main/res/drawable/ic_call.xml delete mode 100644 app/src/main/res/drawable/ic_location.xml delete mode 100644 app/src/main/res/layout/fragment_permission_apps.xml delete mode 100644 app/src/main/res/layout/fragment_permissions.xml delete mode 100644 app/src/main/res/layout/fragment_quick_protection.xml delete mode 100644 app/src/main/res/layout/item_app_toggle.xml delete mode 100644 app/src/main/res/layout/item_permission.xml (limited to 'app/src') 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 } diff --git a/app/src/main/res/drawable/bg_graph_bar.xml b/app/src/main/res/drawable/bg_graph_bar.xml deleted file mode 100644 index cdeae6e..0000000 --- a/app/src/main/res/drawable/bg_graph_bar.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/bg_outlined.xml b/app/src/main/res/drawable/bg_outlined.xml index 2040f18..d33886a 100644 --- a/app/src/main/res/drawable/bg_outlined.xml +++ b/app/src/main/res/drawable/bg_outlined.xml @@ -17,6 +17,6 @@ - + diff --git a/app/src/main/res/drawable/ic_body_monitor.xml b/app/src/main/res/drawable/ic_body_monitor.xml deleted file mode 100644 index cbf0d27..0000000 --- a/app/src/main/res/drawable/ic_body_monitor.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - diff --git a/app/src/main/res/drawable/ic_calendar.xml b/app/src/main/res/drawable/ic_calendar.xml deleted file mode 100644 index 376c5a4..0000000 --- a/app/src/main/res/drawable/ic_calendar.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_call.xml b/app/src/main/res/drawable/ic_call.xml deleted file mode 100644 index 41d8b40..0000000 --- a/app/src/main/res/drawable/ic_call.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_location.xml b/app/src/main/res/drawable/ic_location.xml deleted file mode 100644 index e117e22..0000000 --- a/app/src/main/res/drawable/ic_location.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/layout/apptrackers_fragment.xml b/app/src/main/res/layout/apptrackers_fragment.xml index 17d992e..87fbc51 100644 --- a/app/src/main/res/layout/apptrackers_fragment.xml +++ b/app/src/main/res/layout/apptrackers_fragment.xml @@ -22,7 +22,7 @@ @@ -68,7 +68,7 @@ @@ -75,7 +75,7 @@ app:layout_constraintBottom_toBottomOf="parent" android:layout_marginStart="24dp" android:text="@{subTitle}" - android:textColor="@color/grey_text" + android:textColor="@color/secondary_text" android:textSize="14sp" /> diff --git a/app/src/main/res/layout/fragment_dashboard.xml b/app/src/main/res/layout/fragment_dashboard.xml index 97751a1..97fdae3 100644 --- a/app/src/main/res/layout/fragment_dashboard.xml +++ b/app/src/main/res/layout/fragment_dashboard.xml @@ -15,7 +15,7 @@ > @@ -77,7 +77,7 @@ android:layout_height="wrap_content" android:text="@string/dashboard_state_trackers_label" android:textSize="12sp" - android:textColor="@color/grey_text" + android:textColor="@color/secondary_text" android:layout_marginBottom="8dp" /> @@ -102,7 +102,7 @@ android:layout_height="wrap_content" android:text="@string/dashboard_state_geolocation_label" android:textSize="12sp" - android:textColor="@color/grey_text" + android:textColor="@color/secondary_text" android:layout_marginBottom="8dp" /> @@ -127,7 +127,7 @@ android:layout_height="wrap_content" android:text="@string/dashboard_state_ipaddress_label" android:textSize="12sp" - android:textColor="@color/grey_text" + android:textColor="@color/secondary_text" android:layout_marginBottom="8dp" /> @@ -199,7 +199,7 @@ android:text="@string/dashboard_state_ipaddress_off" android:layout_width="match_parent" android:layout_height="1dp" android:layout_marginStart="48dp" - android:background="@color/grey_divider" + android:background="@color/divider" /> diff --git a/app/src/main/res/layout/fragment_internet_activity_policy.xml b/app/src/main/res/layout/fragment_internet_activity_policy.xml index 44ea823..943c5dd 100644 --- a/app/src/main/res/layout/fragment_internet_activity_policy.xml +++ b/app/src/main/res/layout/fragment_internet_activity_policy.xml @@ -3,7 +3,7 @@ @@ -63,7 +63,7 @@ android:layout_width="match_parent" android:padding="4dp" android:textSize="12sp" - android:textColor="@color/black_text_2" + android:textColor="@color/secondary_text" android:text="@string/ipscrambling_tor_disclaimer" /> @@ -83,7 +83,7 @@ android:layout_width="match_parent" android:layout_marginTop="16dp" android:text="@string/ipscrambling_location_label" - android:textColor="@color/black_text" + android:textColor="@color/primary_text" android:textFontWeight="500" android:textSize="14sp" /> @@ -108,7 +108,7 @@ android:layout_marginTop="32dp" android:layout_marginBottom="16dp" android:text="@string/ipscrambling_select_app" - android:textColor="@color/black_text" + android:textColor="@color/primary_text" android:textFontWeight="500" android:textSize="14sp" /> diff --git a/app/src/main/res/layout/fragment_permission_apps.xml b/app/src/main/res/layout/fragment_permission_apps.xml deleted file mode 100644 index db61e93..0000000 --- a/app/src/main/res/layout/fragment_permission_apps.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_permissions.xml b/app/src/main/res/layout/fragment_permissions.xml deleted file mode 100644 index 7ca4b43..0000000 --- a/app/src/main/res/layout/fragment_permissions.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_quick_protection.xml b/app/src/main/res/layout/fragment_quick_protection.xml deleted file mode 100644 index 569f9b1..0000000 --- a/app/src/main/res/layout/fragment_quick_protection.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_trackers.xml b/app/src/main/res/layout/fragment_trackers.xml index 599d68d..04fcfb1 100644 --- a/app/src/main/res/layout/fragment_trackers.xml +++ b/app/src/main/res/layout/fragment_trackers.xml @@ -3,7 +3,7 @@ diff --git a/app/src/main/res/layout/ipscrambling_item_app_toggle.xml b/app/src/main/res/layout/ipscrambling_item_app_toggle.xml index 117b834..1fbffa0 100644 --- a/app/src/main/res/layout/ipscrambling_item_app_toggle.xml +++ b/app/src/main/res/layout/ipscrambling_item_app_toggle.xml @@ -14,7 +14,6 @@ android:id="@+id/icon" android:layout_height="32dp" android:layout_width="32dp" - android:src="@drawable/ic_facebook" /> - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_permission.xml b/app/src/main/res/layout/item_permission.xml deleted file mode 100644 index 66d4213..0000000 --- a/app/src/main/res/layout/item_permission.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/topbar.xml b/app/src/main/res/layout/topbar.xml index a493b3b..90fb29a 100644 --- a/app/src/main/res/layout/topbar.xml +++ b/app/src/main/res/layout/topbar.xml @@ -26,7 +26,7 @@ > - #FFBB86FC - #FF6200EE - #FF3700B3 - #FF03DAC5 - #FF018786 - #FF000000 - #FFFFFFFF - + + @lineageos.platform:color/color_default_primary @lineageos.platform:color/color_default_accent - #DE000000 - #BD000000 + @lineageos.platform:color/color_default_primary_text + @lineageos.platform:color/color_default_secondary_text - #99000000 - #61000000 - #14212121 - #66FFFFFF + + @lineageos.platform:color/color_default_red1 - #169659 - #2CC766 - @lineageos.platform:color/color_default_blue1 + #263238 - #AADCFE - #FFE1F5FE - #FF81D4FA - #FF039BE5 - #FF01579B - + #FFFFFFFF + #66FFFFFF + #2CC766 + #AADCFE + #14212121 #DEFFFFFF diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2a6d21d..4024175 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -118,7 +118,7 @@ This is an app widget description - @id/app_title + @string/app_name Your online privacy is protected Your online privacy is unprotected @string/dashboard_state_trackers_label diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 1e20ab1..9bc2442 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -2,13 +2,12 @@ -- cgit v1.2.1