From 2bca0b472b637376d21547ebce4db7658678244e Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Tue, 23 Jul 2024 20:20:15 +0530 Subject: [PATCH] Theme app according to our palette --- Android.bp | 5 +++-- res/color/checkbox_color.xml | 21 +++++++++++++++++++ res/drawable/digit_background.xml | 2 +- res/drawable/ic_caret_down.xml | 2 +- res/drawable/ic_caret_up.xml | 2 +- res/drawable/popup_background.xml | 2 +- res/layout-land/desk_clock.xml | 4 ++-- res/layout/city_list_item.xml | 3 ++- res/layout/collapsing_toolbar_base_layout.xml | 2 +- res/layout/desk_clock.xml | 4 ++-- res/layout/timer_setup_digits.xml | 2 -- res/values-sw320dp/dimens.xml | 1 + res/values/colors.xml | 18 ++++++++-------- res/values/dimens.xml | 3 ++- res/values/styles.xml | 14 ++++++------- res/values/themes.xml | 7 +++++-- 16 files changed, 59 insertions(+), 33 deletions(-) create mode 100644 res/color/checkbox_color.xml diff --git a/Android.bp b/Android.bp index ffafc993a..8ddec5502 100644 --- a/Android.bp +++ b/Android.bp @@ -21,7 +21,7 @@ android_app { "androidx.collection_collection", "androidx.arch.core_core-common", "androidx.lifecycle_lifecycle-common", - "com.google.android.material_material", + "androidx.lifecycle_lifecycle-runtime", "androidx.transition_transition", "androidx.core_core", @@ -30,7 +30,8 @@ android_app { "androidx.appcompat_appcompat", "androidx.gridlayout_gridlayout", "androidx.recyclerview_recyclerview", - "androidx-constraintlayout_constraintlayout" + "androidx-constraintlayout_constraintlayout", + "elib", ], required: [ "com.android.deskclock_allowlist", diff --git a/res/color/checkbox_color.xml b/res/color/checkbox_color.xml new file mode 100644 index 000000000..852841877 --- /dev/null +++ b/res/color/checkbox_color.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/res/drawable/digit_background.xml b/res/drawable/digit_background.xml index 95d91de47..f276dad82 100644 --- a/res/drawable/digit_background.xml +++ b/res/drawable/digit_background.xml @@ -3,5 +3,5 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> - + diff --git a/res/drawable/ic_caret_down.xml b/res/drawable/ic_caret_down.xml index a5c8e69ad..fa6581c45 100644 --- a/res/drawable/ic_caret_down.xml +++ b/res/drawable/ic_caret_down.xml @@ -22,7 +22,7 @@ android:bottom="8dp"> - + diff --git a/res/drawable/ic_caret_up.xml b/res/drawable/ic_caret_up.xml index 93a947407..f7285890f 100644 --- a/res/drawable/ic_caret_up.xml +++ b/res/drawable/ic_caret_up.xml @@ -22,7 +22,7 @@ android:bottom="8dp"> - + diff --git a/res/drawable/popup_background.xml b/res/drawable/popup_background.xml index 66ef3597c..9582aacd3 100644 --- a/res/drawable/popup_background.xml +++ b/res/drawable/popup_background.xml @@ -3,5 +3,5 @@ android:shape="rectangle"> - + diff --git a/res/layout-land/desk_clock.xml b/res/layout-land/desk_clock.xml index b8a121f3d..b77baf845 100644 --- a/res/layout-land/desk_clock.xml +++ b/res/layout-land/desk_clock.xml @@ -98,7 +98,7 @@ android:layout_margin="@dimen/fab_margin" android:contentDescription="@null" app:borderWidth="0dp" - app:fabCustomSize="@dimen/fab_height" + app:fabCustomSize="@dimen/fab_size" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -127,7 +127,7 @@ android:id="@+id/bottom_view" android:layout_width="match_parent" android:layout_height="72dp" - android:background="@color/secondary_color" + android:background="@color/e_action_bar_dark" app:menu="@menu/bottom_navigation_menu" app:itemIconTint="@color/tab_tint_color" app:itemTextColor="@color/tab_tint_color" diff --git a/res/layout/city_list_item.xml b/res/layout/city_list_item.xml index 520ab328d..d79725180 100644 --- a/res/layout/city_list_item.xml +++ b/res/layout/city_list_item.xml @@ -34,7 +34,8 @@ android:id="@+id/city_onoff" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:clickable="false" /> + android:clickable="false" + android:buttonTint="@color/checkbox_color" /> 60sp + 60sp diff --git a/res/values/colors.xml b/res/values/colors.xml index cd1ea9060..cec4ad5e1 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -28,27 +28,27 @@ #00000000 - @android:color/system_neutral1_900 + @color/e_background_dark - @android:color/system_accent3_200 - @android:color/system_accent2_200 - @android:color/system_neutral1_800 - @android:color/system_neutral2_800 + @color/e_accent_dark + @color/e_accent_dark + @color/e_floating_background_dark + @color/e_floating_background_dark - @color/accent_100 + @color/e_switch_thumb_on @color/black - @color/default_background + @color/e_switch_thumb_off - @color/accent_color + @color/e_switch_track_on - @color/system_neutral2_500 + @color/e_switch_track_off @android:color/system_neutral2_300 @android:color/system_neutral2_500 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index bf5128d1a..2e7c64982 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -51,7 +51,7 @@ 16sp 36sp 16sp - 72sp + 66sp 120dip 30dp @@ -129,4 +129,5 @@ 80dp 12dp 16dp + 72dp diff --git a/res/values/styles.xml b/res/values/styles.xml index 98bd74f52..68b17974e 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -84,7 +84,8 @@ showTitle|homeAsUp - @@ -110,8 +111,8 @@ @@ -127,10 +128,9 @@ -