From c52e8e688874590d0f656a833ac446b113327d5a Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Tue, 6 Sep 2022 16:27:00 +0530 Subject: [PATCH 1/2] Change app icon to our custom icon --- res/drawable/ic_launcher_background.xml | 36 ++++++++++++++---- res/drawable/ic_launcher_foreground.xml | 49 ++++++++++++------------- res/mipmap-anydpi/ic_launcher.xml | 25 ++++++++++--- 3 files changed, 70 insertions(+), 40 deletions(-) diff --git a/res/drawable/ic_launcher_background.xml b/res/drawable/ic_launcher_background.xml index 452f45a3a..5ec6d6298 100644 --- a/res/drawable/ic_launcher_background.xml +++ b/res/drawable/ic_launcher_background.xml @@ -1,17 +1,37 @@ + ~ 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:pathData="M0,0h108v108h-108z"> + + + + + + + diff --git a/res/drawable/ic_launcher_foreground.xml b/res/drawable/ic_launcher_foreground.xml index 7ce0be904..6fe8e07e1 100644 --- a/res/drawable/ic_launcher_foreground.xml +++ b/res/drawable/ic_launcher_foreground.xml @@ -1,34 +1,31 @@ + ~ 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..25f9cfa96 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 bdc5d44ec4d618a6df27904b82518569a52cecd5 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Thu, 15 Sep 2022 19:24:13 +0530 Subject: [PATCH 2/2] Theme app according to our palette --- Android.bp | 1 + res/color/search_chip_background_color.xml | 4 +-- .../bottom_sheet_dialog_background.xml | 2 +- res/drawable/ic_arrow_back.xml | 2 +- res/drawable/ic_hamburger.xml | 2 +- res/drawable/list_divider.xml | 2 +- res/layout/drawer_layout.xml | 4 +-- res/layout/inspector_activity.xml | 4 +-- res/layout/inspector_header.xml | 2 +- res/values-night/colors.xml | 7 ----- res/values-night/themes.xml | 26 ------------------- res/values/colors.xml | 12 ++++----- res/values/styles.xml | 7 +++-- res/values/themes.xml | 17 ++++++------ src/com/android/documentsui/BaseActivity.java | 6 ----- .../inspector/InspectorActivity.java | 6 ----- 16 files changed, 32 insertions(+), 72 deletions(-) diff --git a/Android.bp b/Android.bp index 88ebebadd..7e088ec60 100644 --- a/Android.bp +++ b/Android.bp @@ -54,6 +54,7 @@ java_defaults { "apache-commons-compress", "com.google.android.material_material", "guava", + "elib", ], libs: [ diff --git a/res/color/search_chip_background_color.xml b/res/color/search_chip_background_color.xml index c94d155a5..ed5f3222f 100644 --- a/res/color/search_chip_background_color.xml +++ b/res/color/search_chip_background_color.xml @@ -16,7 +16,7 @@ --> - - + + \ No newline at end of file diff --git a/res/drawable/bottom_sheet_dialog_background.xml b/res/drawable/bottom_sheet_dialog_background.xml index 703667a52..f3f7bb930 100644 --- a/res/drawable/bottom_sheet_dialog_background.xml +++ b/res/drawable/bottom_sheet_dialog_background.xml @@ -15,7 +15,7 @@ --> - + \ No newline at end of file diff --git a/res/drawable/ic_hamburger.xml b/res/drawable/ic_hamburger.xml index bc273524b..4e4ef7f7b 100644 --- a/res/drawable/ic_hamburger.xml +++ b/res/drawable/ic_hamburger.xml @@ -20,6 +20,6 @@ android:viewportWidth="24" android:viewportHeight="24"> \ No newline at end of file diff --git a/res/drawable/list_divider.xml b/res/drawable/list_divider.xml index 5067af08e..de96b1f12 100644 --- a/res/drawable/list_divider.xml +++ b/res/drawable/list_divider.xml @@ -15,7 +15,7 @@ --> + android:tint="@android:color/transparent"> + android:background="@color/e_drawer_background"> diff --git a/res/layout/inspector_activity.xml b/res/layout/inspector_activity.xml index 8763351c9..9d6908a04 100644 --- a/res/layout/inspector_activity.xml +++ b/res/layout/inspector_activity.xml @@ -55,7 +55,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?android:attr/actionBarSize" - android:background="?android:attr/colorBackground" + android:background="@color/e_action_bar" android:theme="?actionBarTheme" app:title="@string/inspector_title" app:titleTextAppearance="@style/ToolbarTitle" @@ -76,7 +76,7 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@drawable/bottom_sheet_dialog_background" + android:background="@color/app_background_color" android:paddingBottom="5dp"> + android:background="?android:colorBackground" /> diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml index 169f52f35..364bf1e3b 100644 --- a/res/values-night/colors.xml +++ b/res/values-night/colors.xml @@ -14,14 +14,8 @@ limitations under the License. --> - #202124 - #3C4043 #52000000 - #8AB4F8 - #3D8AB4F8 - #5F6368 - @android:color/white @android:color/white @@ -32,5 +26,4 @@ #36ffffff #9aa0a6 - ?android:colorSecondary diff --git a/res/values-night/themes.xml b/res/values-night/themes.xml index 8ade73172..ddf2dcd02 100644 --- a/res/values-night/themes.xml +++ b/res/values-night/themes.xml @@ -18,30 +18,4 @@ - diff --git a/res/values/colors.xml b/res/values/colors.xml index 98287627e..a80959b71 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -19,13 +19,13 @@ else that needs to manually declare a background matching the "default" app background (e.g. the drawer overlay). --> - @android:color/white - @android:color/white + @color/e_background + @color/e_floating_background #99FFFFFF - #1E88E5 - #E3F2FD - #E0E0E0 + @color/e_accent + @color/e_alpha_accent + @color/e_stroke_color #fff1f3f4 @android:color/transparent @@ -52,5 +52,5 @@ #1f000000 ?android:colorSecondary - @color/app_background_color + @color/e_action_bar diff --git a/res/values/styles.xml b/res/values/styles.xml index 264f2b4e6..c7ed49083 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -17,6 +17,7 @@ @@ -103,6 +104,8 @@