From bb617e98f88ab30af024827e45b07c357b2a7762 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Fri, 17 Mar 2023 20:46:27 +0530 Subject: [PATCH 1/4] Change app icon to our custom icon --- AndroidManifest.xml | 2 +- res/drawable/e_backgroundclock.xml | 76 +++++++++++++++ res/drawable/e_clock.xml | 111 ++++++++++++++++++++++ res/drawable/e_hourclock.xml | 35 +++++++ res/drawable/e_minuteclock.xml | 35 +++++++ res/drawable/e_secondclock.xml | 35 +++++++ res/drawable/ic_launcher_background.xml | 28 +++--- res/drawable/ic_launcher_foreground.xml | 118 ++++++++++++++++++------ res/drawable/ic_launcher_monochrome.xml | 26 ------ res/mipmap-anydpi/ic_launcher.xml | 24 +++-- 10 files changed, 414 insertions(+), 76 deletions(-) create mode 100644 res/drawable/e_backgroundclock.xml create mode 100644 res/drawable/e_clock.xml create mode 100644 res/drawable/e_hourclock.xml create mode 100644 res/drawable/e_minuteclock.xml create mode 100644 res/drawable/e_secondclock.xml delete mode 100644 res/drawable/ic_launcher_monochrome.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 2d1168ba6..4b72a1602 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -50,7 +50,7 @@ android:supportsRtl="true" android:theme="@style/Theme.DeskClock"> - + diff --git a/res/drawable/e_backgroundclock.xml b/res/drawable/e_backgroundclock.xml new file mode 100644 index 000000000..bbed8542f --- /dev/null +++ b/res/drawable/e_backgroundclock.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/drawable/e_clock.xml b/res/drawable/e_clock.xml new file mode 100644 index 000000000..8fa21ddb0 --- /dev/null +++ b/res/drawable/e_clock.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/drawable/e_hourclock.xml b/res/drawable/e_hourclock.xml new file mode 100644 index 000000000..471072d2d --- /dev/null +++ b/res/drawable/e_hourclock.xml @@ -0,0 +1,35 @@ + + + + + + + + + diff --git a/res/drawable/e_minuteclock.xml b/res/drawable/e_minuteclock.xml new file mode 100644 index 000000000..2f21ec655 --- /dev/null +++ b/res/drawable/e_minuteclock.xml @@ -0,0 +1,35 @@ + + + + + + + + + diff --git a/res/drawable/e_secondclock.xml b/res/drawable/e_secondclock.xml new file mode 100644 index 000000000..dfdb49f08 --- /dev/null +++ b/res/drawable/e_secondclock.xml @@ -0,0 +1,35 @@ + + + + + + + + + diff --git a/res/drawable/ic_launcher_background.xml b/res/drawable/ic_launcher_background.xml index 8bb038e44..46be0492a 100644 --- a/res/drawable/ic_launcher_background.xml +++ b/res/drawable/ic_launcher_background.xml @@ -1,8 +1,19 @@ + ~ Copyright ECORP SAS 2022 + ~ This program is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ This program is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with this program. If not, see . + --> - - - + android:fillColor="#225180"/> diff --git a/res/drawable/ic_launcher_foreground.xml b/res/drawable/ic_launcher_foreground.xml index 5f494b6ee..bcb861172 100644 --- a/res/drawable/ic_launcher_foreground.xml +++ b/res/drawable/ic_launcher_foreground.xml @@ -1,39 +1,97 @@ + ~ Copyright ECORP SAS 2022 + ~ This program is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ This program is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with this program. If not, see . + --> - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/drawable/ic_launcher_monochrome.xml b/res/drawable/ic_launcher_monochrome.xml deleted file mode 100644 index 3ac6a73c0..000000000 --- a/res/drawable/ic_launcher_monochrome.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - diff --git a/res/mipmap-anydpi/ic_launcher.xml b/res/mipmap-anydpi/ic_launcher.xml index b58c81ff9..463b2ba98 100644 --- a/res/mipmap-anydpi/ic_launcher.xml +++ b/res/mipmap-anydpi/ic_launcher.xml @@ -1,10 +1,22 @@ + ~ Copyright ECORP SAS 2022 + ~ This program is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ This program is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with this program. If not, see . + --> - - - + + + + -- GitLab From d7d387cf04359156753b0b1d746de7c845a9fda1 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Thu, 15 Sep 2022 19:15:36 +0530 Subject: [PATCH 2/4] 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/colors.xml | 18 ++++++++-------- res/values/dimens.xml | 2 ++ res/values/styles.xml | 14 ++++++------- res/values/themes.xml | 7 +++++-- 15 files changed, 58 insertions(+), 32 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" /> #B3FFFFFF - @android:color/system_neutral1_900 + @color/e_background_dark #000000 - @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_100 @android:color/system_neutral2_300 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c136fe25a..4e3191e40 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -144,4 +144,6 @@ 4dp 0.5 + + 72dp diff --git a/res/values/styles.xml b/res/values/styles.xml index 8c6364344..733fea6e2 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -109,7 +109,8 @@ showTitle|homeAsUp - @@ -135,8 +136,8 @@ @@ -152,10 +153,9 @@ -