From 17273878afef47db737aec25d5dc37b48b573226 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Mon, 10 Oct 2022 14:30:21 +0530 Subject: [PATCH 1/2] Change app icon to our custom icon --- res/drawable/ic_launcher_background.xml | 40 ++++++++++---- res/drawable/ic_launcher_foreground.xml | 70 +++++++++++++++---------- res/mipmap-anydpi/ic_launcher.xml | 26 ++++++--- 3 files changed, 92 insertions(+), 44 deletions(-) diff --git a/res/drawable/ic_launcher_background.xml b/res/drawable/ic_launcher_background.xml index fc4823054e..f1931a336b 100644 --- a/res/drawable/ic_launcher_background.xml +++ b/res/drawable/ic_launcher_background.xml @@ -1,20 +1,38 @@ + ~ Copyright (C) 2022 E FOUNDATION + ~ + ~ 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:pathData="M0,0h108v108h-108z"> + + + + + + + diff --git a/res/drawable/ic_launcher_foreground.xml b/res/drawable/ic_launcher_foreground.xml index 686ffa2b53..e305355101 100644 --- a/res/drawable/ic_launcher_foreground.xml +++ b/res/drawable/ic_launcher_foreground.xml @@ -1,36 +1,52 @@ + ~ Copyright (C) 2022 E FOUNDATION + ~ + ~ 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 3d90bc5c33..900ba3d685 100644 --- a/res/mipmap-anydpi/ic_launcher.xml +++ b/res/mipmap-anydpi/ic_launcher.xml @@ -1,9 +1,23 @@ + ~ Copyright (C) 2022 E FOUNDATION + ~ + ~ 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 c7b6df65db4b1c3aa197c4a94c04f9c0c341381c Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Mon, 10 Oct 2022 16:15:38 +0530 Subject: [PATCH 2/2] Theme app according to our palette --- Android.bp | 1 + res/drawable-anydpi-v26/fab_pink.xml | 28 +++++ ...ite_540dp.png => ic_person_white_base.png} | Bin ...ite_540dp.png => ic_person_white_base.png} | Bin ...ite_540dp.png => ic_person_white_base.png} | Bin ...ite_540dp.png => ic_person_white_base.png} | Bin ...ite_540dp.png => ic_person_white_base.png} | Bin res/drawable/person_white_540dp.xml | 19 +++ res/drawable/quantum_ic_drawer_my_info_32.xml | 10 +- res/layout-land/people_activity_toolbar.xml | 2 +- res/layout/contact_editor_activity.xml | 2 +- res/layout/contact_editor_fields.xml | 2 +- res/layout/people_activity_toolbar.xml | 2 +- res/layout/search_bar_expanded.xml | 4 +- res/layout/selection_bar.xml | 2 +- res/values-night/colors.xml | 2 +- res/values-v27/styles.xml | 16 +-- res/values/colors.xml | 116 +++++++++--------- res/values/lineage_colors.xml | 4 +- res/values/styles.xml | 28 +++-- .../contacts/activities/PeopleActivity.java | 4 +- .../contacts/drawer/DrawerAdapter.java | 2 +- .../lettertiles/LetterTileDrawable.java | 1 - .../contacts/util/MaterialColorMapUtils.java | 4 +- 24 files changed, 147 insertions(+), 102 deletions(-) create mode 100644 res/drawable-anydpi-v26/fab_pink.xml rename res/drawable-hdpi/{person_white_540dp.png => ic_person_white_base.png} (100%) rename res/drawable-mdpi/{person_white_540dp.png => ic_person_white_base.png} (100%) rename res/drawable-xhdpi/{person_white_540dp.png => ic_person_white_base.png} (100%) rename res/drawable-xxhdpi/{person_white_540dp.png => ic_person_white_base.png} (100%) rename res/drawable-xxxhdpi/{person_white_540dp.png => ic_person_white_base.png} (100%) create mode 100644 res/drawable/person_white_540dp.xml diff --git a/Android.bp b/Android.bp index 27c5b2f4e1..0dd40c4521 100644 --- a/Android.bp +++ b/Android.bp @@ -52,6 +52,7 @@ android_app { "com.android.vcard", "guava", "libphonenumber", + "elib", ], certificate: "shared", diff --git a/res/drawable-anydpi-v26/fab_pink.xml b/res/drawable-anydpi-v26/fab_pink.xml new file mode 100644 index 0000000000..deea990297 --- /dev/null +++ b/res/drawable-anydpi-v26/fab_pink.xml @@ -0,0 +1,28 @@ + + + + + + + + diff --git a/res/drawable-hdpi/person_white_540dp.png b/res/drawable-hdpi/ic_person_white_base.png similarity index 100% rename from res/drawable-hdpi/person_white_540dp.png rename to res/drawable-hdpi/ic_person_white_base.png diff --git a/res/drawable-mdpi/person_white_540dp.png b/res/drawable-mdpi/ic_person_white_base.png similarity index 100% rename from res/drawable-mdpi/person_white_540dp.png rename to res/drawable-mdpi/ic_person_white_base.png diff --git a/res/drawable-xhdpi/person_white_540dp.png b/res/drawable-xhdpi/ic_person_white_base.png similarity index 100% rename from res/drawable-xhdpi/person_white_540dp.png rename to res/drawable-xhdpi/ic_person_white_base.png diff --git a/res/drawable-xxhdpi/person_white_540dp.png b/res/drawable-xxhdpi/ic_person_white_base.png similarity index 100% rename from res/drawable-xxhdpi/person_white_540dp.png rename to res/drawable-xxhdpi/ic_person_white_base.png diff --git a/res/drawable-xxxhdpi/person_white_540dp.png b/res/drawable-xxxhdpi/ic_person_white_base.png similarity index 100% rename from res/drawable-xxxhdpi/person_white_540dp.png rename to res/drawable-xxxhdpi/ic_person_white_base.png diff --git a/res/drawable/person_white_540dp.xml b/res/drawable/person_white_540dp.xml new file mode 100644 index 0000000000..479c55cbb9 --- /dev/null +++ b/res/drawable/person_white_540dp.xml @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/res/drawable/quantum_ic_drawer_my_info_32.xml b/res/drawable/quantum_ic_drawer_my_info_32.xml index 4e310cb4a1..b0b0f16afe 100644 --- a/res/drawable/quantum_ic_drawer_my_info_32.xml +++ b/res/drawable/quantum_ic_drawer_my_info_32.xml @@ -5,15 +5,11 @@ android:viewportHeight="32.0"> + android:fillColor="@color/e_accent"/> + android:fillColor="@color/e_background" /> + android:fillColor="@color/e_background" /> diff --git a/res/layout-land/people_activity_toolbar.xml b/res/layout-land/people_activity_toolbar.xml index 15f12f6718..eb33d39578 100644 --- a/res/layout-land/people_activity_toolbar.xml +++ b/res/layout-land/people_activity_toolbar.xml @@ -29,7 +29,7 @@ android:id="@+id/toolbar_frame" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="?attr/colorPrimary"> + android:background="@color/actionbar_background_color"> diff --git a/res/layout/people_activity_toolbar.xml b/res/layout/people_activity_toolbar.xml index 4e8ea2f7e1..1bc4652dd1 100644 --- a/res/layout/people_activity_toolbar.xml +++ b/res/layout/people_activity_toolbar.xml @@ -25,7 +25,7 @@ android:id="@+id/toolbar_frame" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="?attr/colorPrimary"> + android:background="@color/actionbar_background_color"> + android:tint="@color/e_primary_text_color" /> diff --git a/res/layout/selection_bar.xml b/res/layout/selection_bar.xml index 272a2fcf9d..0d9f8a8ef4 100644 --- a/res/layout/selection_bar.xml +++ b/res/layout/selection_bar.xml @@ -51,7 +51,7 @@ android:paddingEnd="16dp" android:paddingStart="16dp" android:text="@string/menu_add_contacts" - android:textColor="@color/primary_color" + android:textColor="@color/actionbar_text_color" android:textStyle="bold" android:visibility="gone"/> diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml index e88ed65b73..a242b5e9c2 100644 --- a/res/values-night/colors.xml +++ b/res/values-night/colors.xml @@ -5,7 +5,7 @@ --> - #1f1f1f + @color/background_primary #dadada diff --git a/res/values-v27/styles.xml b/res/values-v27/styles.xml index e821cc1570..0187a5cabc 100644 --- a/res/values-v27/styles.xml +++ b/res/values-v27/styles.xml @@ -12,8 +12,8 @@ @style/ListViewStyle @color/background_primary @color/primary_color_dark - @color/primary_color - @color/primary_color + @color/e_accent + @color/e_accent @style/ContactsAlertDialogTheme @dimen/contact_browser_list_item_height 24dip @@ -51,10 +51,11 @@ @style/PopupMenuStyle @color/navigation_bar_bg @color/navigation_bar_divider - true + @bool/isLight + @bool/isLight - diff --git a/res/values/colors.xml b/res/values/colors.xml index aeba877162..51eb19d11d 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -17,39 +17,39 @@ #F5F5F5 - #dd000000 + @color/e_primary_text_color - #89000000 + @color/e_secondary_text_color - #61000000 + @color/e_disabled_color - #737373 + @color/e_secondary_text_color #202020 #2a56c6 #0f000000 - #FFFFFF + @color/e_primary_text_color - @color/primary_color + @color/e_action_bar - #f6f6f6 + @color/e_action_bar - #bababa + @color/e_action_bar - #1c3aa9 - #2a56c6 + @color/e_action_bar + @color/e_accent - #546E7A - #607D8B + @color/e_action_bar + @color/e_action_bar #FFFFFF - @color/contacts_accent_color + @color/e_background #e0e0e0 @@ -61,7 +61,7 @@ #ffffff - #f4f4f4 + @color/e_background #2aad6f #ff2e58 @@ -73,7 +73,7 @@ #7f7f7f - #40000000 + @color/e_disabled_color #40000000 @@ -85,7 +85,7 @@ #4D000000 - #efefef + @color/e_background #0f9d58 @@ -97,12 +97,12 @@ #a0ffffff - #363636 + @color/e_primary_text_color - @color/dialtacts_secondary_text_color + @color/e_secondary_text_color - @color/dialtacts_theme_color + @color/e_primary_text_color #363636 @@ -117,7 +117,7 @@ #333333 - #737373 + @color/e_secondary_text_color #7f000000 @@ -132,39 +132,35 @@ These colors are also used by MaterialColorMapUtils to generate primary activity colors. --> - #DB4437 - #E91E63 - #9C27B0 - #673AB7 - #3F51B5 - #4285F4 - #039BE5 - #0097A7 - #009688 - #0F9D58 - #689F38 - #EF6C00 - #FF5722 - #757575 + #0F94F6 + #00B4B4 + #008D96 + #44B04C + #AFD83D + #FFED21 + #FFC300 + #FF7A00 + #F8432E + #ED1C61 + #ED1C61 + #5754DC - #C53929 - #C2185B - #7B1FA2 - #512DA8 - #303F9F - #3367D6 - #0277BD - #006064 - #00796B - #0B8043 - #33691E - #E65100 - #E64A19 - #424242 + #0F94F6 + #00B4B4 + #008D96 + #44B04C + #AFD83D + #FFED21 + #FFC300 + #FF7A00 + #F8432E + #ED1C61 + #ED1C61 + #5754DC - #ffffff + @color/e_primary_text_color @color/actionbar_background_color - #ffffff + @color/e_primary_text_color #8C000000 - #DF000000 + @color/actionbar_text_color #777777 - #000000 + @color/e_primary_text_color - #ffffff + @color/e_action_bar - #66000000 + @color/e_disabled_color @color/dialtacts_theme_color - #f9f9f9 + @color/e_background #FFFFFF @@ -233,7 +229,7 @@ @color/actionbar_text_color_black #dbdbdb - #f50057 + @color/e_accent #333333 @@ -245,13 +241,13 @@ #e0e0e0 - #E5E5E5 + @android:color/transparent - #FAFAFA + @color/e_drawer_background - #E8E8E8 + @color/navigation_drawer_item_background #1A000000 diff --git a/res/values/lineage_colors.xml b/res/values/lineage_colors.xml index 6aee4d227e..96b4c511d0 100644 --- a/res/values/lineage_colors.xml +++ b/res/values/lineage_colors.xml @@ -15,6 +15,6 @@ limitations under the License. --> - @android:color/white - #1f000000 + @color/e_action_bar + @android:color/transparent diff --git a/res/values/styles.xml b/res/values/styles.xml index 18401599ea..64b5af0a61 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -92,7 +92,7 @@ @@ -453,6 +455,8 @@ background and text color. See also android:style/Widget.Holo.TextView.ListSepar