From 3f1b4bfb2f50dec73cc989a45a2ced1a1cb2ceb0 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Fri, 31 Dec 2021 05:54:53 +0000 Subject: [PATCH] settings: Theme according to our mockups --- res/drawable/ic_arrow_back.xml | 2 +- res/drawable/ic_find_in_page_24px.xml | 2 +- res/layout/switch_bar.xml | 5 +- res/menu/time_zone_base_search_menu.xml | 2 +- res/values-night/colors.xml | 3 - res/values-night/styles.xml | 6 +- res/values-night/themes.xml | 14 ++-- res/values/colors.xml | 10 +-- res/values/styles.xml | 18 ++++- res/values/themes.xml | 68 +++++++++++-------- .../actionbar/SearchMenuController.java | 2 +- 11 files changed, 81 insertions(+), 51 deletions(-) diff --git a/res/drawable/ic_arrow_back.xml b/res/drawable/ic_arrow_back.xml index b6a80cfd9d8..38aae672f63 100644 --- a/res/drawable/ic_arrow_back.xml +++ b/res/drawable/ic_arrow_back.xml @@ -19,7 +19,7 @@ android:viewportWidth="24" android:viewportHeight="24" android:autoMirrored="true" - android:tint="?android:attr/colorControlNormal"> + android:tint="@lineageos.platform:color/color_default_accent"> diff --git a/res/drawable/ic_find_in_page_24px.xml b/res/drawable/ic_find_in_page_24px.xml index 18895e49a1c..8bde63e2b1b 100644 --- a/res/drawable/ic_find_in_page_24px.xml +++ b/res/drawable/ic_find_in_page_24px.xml @@ -20,7 +20,7 @@ android:height="24dp" android:viewportWidth="24" android:viewportHeight="24" - android:tint="?android:attr/colorControlNormal"> + android:tint="@lineageos.platform:color/color_default_accent"> diff --git a/res/layout/switch_bar.xml b/res/layout/switch_bar.xml index 3bdfbd49cbc..724dba7ef89 100644 --- a/res/layout/switch_bar.xml +++ b/res/layout/switch_bar.xml @@ -28,7 +28,7 @@ android:maxLines="2" android:ellipsize="end" android:textAppearance="@style/TextAppearance.Switch" - android:textColor="?android:attr/textColorPrimaryInverse" + android:textColor="@lineageos.platform:color/color_default_primary_text" android:textAlignment="viewStart"/> + android:layout_gravity="center_vertical" /> diff --git a/res/menu/time_zone_base_search_menu.xml b/res/menu/time_zone_base_search_menu.xml index 6df42c4260d..39261e17d04 100644 --- a/res/menu/time_zone_base_search_menu.xml +++ b/res/menu/time_zone_base_search_menu.xml @@ -19,7 +19,7 @@ diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml index 354da77fe14..6a7011ac627 100644 --- a/res/values-night/colors.xml +++ b/res/values-night/colors.xml @@ -20,10 +20,7 @@ #783BE5 #3F5FBD @*android:color/material_grey_900 - @*android:color/material_grey_900 - @*android:color/material_grey_800 - @*android:color/material_grey_800 @*android:color/material_grey_800 #AECBFA #5F6368 diff --git a/res/values-night/styles.xml b/res/values-night/styles.xml index 87159b8b76f..30c8bddade5 100644 --- a/res/values-night/styles.xml +++ b/res/values-night/styles.xml @@ -18,7 +18,11 @@ \ No newline at end of file diff --git a/res/values-night/themes.xml b/res/values-night/themes.xml index 2105550d591..79cb1c898b9 100644 --- a/res/values-night/themes.xml +++ b/res/values-night/themes.xml @@ -18,21 +18,21 @@ diff --git a/res/values/colors.xml b/res/values/colors.xml index 4904160b9e5..ed043b8b39b 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -46,7 +46,7 @@ #ff384248 #ffced7db - @*android:color/accent_device_default_light + @lineageos.platform:color/color_default_accent #60000000 @@ -101,7 +101,7 @@ #1f000000 @*android:color/material_grey_100 - @*android:color/background_device_default_light + @lineageos.platform:color/color_default_background @*android:color/material_grey_600 @@ -132,7 +132,7 @@ ?android:attr/colorBackgroundFloating - @*android:color/accent_device_default_light + @lineageos.platform:color/color_default_accent #ffdadce0 @@ -141,10 +141,10 @@ - @android:color/white + @lineageos.platform:color/color_default_primary_dark - @*android:color/background_device_default_light + @lineageos.platform:color/color_default_foreground #ffdadce0 diff --git a/res/values/styles.xml b/res/values/styles.xml index 1be8ba0e0b6..fb022248c74 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -16,7 +16,9 @@ + + + + + diff --git a/res/values/themes.xml b/res/values/themes.xml index 172a89a7351..72d330ba3bf 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -23,7 +23,22 @@ true - @@ -123,7 +137,7 @@ @@ -173,8 +187,8 @@ false false true - #00000000 - #00000000 + @lineageos.platform:color/color_default_primary_dark + @lineageos.platform:color/color_default_primary_dark