From 7e26901cb63f1dd09aa7dd9a091876854cf3e528 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Mon, 5 Sep 2022 12:20:57 +0530 Subject: [PATCH 1/2] Change app icon to our custom icon --- res/drawable/ic_launcher_background.xml | 28 +++--- res/drawable/ic_launcher_foreground.xml | 118 ++++++++++++++++++------ res/mipmap-anydpi/ic_launcher.xml | 25 +++-- 3 files changed, 122 insertions(+), 49 deletions(-) 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/mipmap-anydpi/ic_launcher.xml b/res/mipmap-anydpi/ic_launcher.xml index 3d90bc5c3..18e000c2d 100644 --- a/res/mipmap-anydpi/ic_launcher.xml +++ b/res/mipmap-anydpi/ic_launcher.xml @@ -1,9 +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 . + --> - - - + + + + + \ No newline at end of file -- GitLab From cac0f19d79ac783700482b0798cf66d60adc1a0e Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Thu, 15 Sep 2022 19:15:36 +0530 Subject: [PATCH 2/2] 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-land/desk_clock_old.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 +++++-- 16 files changed, 60 insertions(+), 34 deletions(-) create mode 100644 res/color/checkbox_color.xml diff --git a/Android.bp b/Android.bp index a8271b54a..13874b85d 100644 --- a/Android.bp +++ b/Android.bp @@ -33,7 +33,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.percentlayout_percentlayout", "androidx.transition_transition", @@ -43,7 +43,8 @@ android_app { "androidx.appcompat_appcompat", "androidx.gridlayout_gridlayout", "androidx.recyclerview_recyclerview", - "androidx-constraintlayout_constraintlayout" + "androidx-constraintlayout_constraintlayout", + "elib", ], required: [ "com.android.deskclock_whitelist" 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 e802999d0..d67f14911 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 d0ad7eed7..3833435ac 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 03f6ba72f..c1b53a7ff 100644 --- a/res/layout-land/desk_clock.xml +++ b/res/layout-land/desk_clock.xml @@ -97,7 +97,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" @@ -125,7 +125,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-land/desk_clock_old.xml b/res/layout-land/desk_clock_old.xml index 6f98ce555..22e9050c1 100644 --- a/res/layout-land/desk_clock_old.xml +++ b/res/layout-land/desk_clock_old.xml @@ -93,7 +93,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" @@ -119,7 +119,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 856ef8241..335b3a9cd 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -140,4 +140,6 @@ 8dp 4dp + + 72dp diff --git a/res/values/styles.xml b/res/values/styles.xml index 7ae54c97c..5f2d30846 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -101,7 +101,8 @@ showTitle|homeAsUp - @@ -127,8 +128,8 @@ @@ -144,10 +145,9 @@ -