From d493a04936ea59f73f7acd8080d7cdc1cca4f2bf Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Tue, 6 Sep 2022 16:25:35 +0530 Subject: [PATCH 1/5] Don't translate some strings as it causes issue with weblate --- res/values/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index a1d6982fd..f1507e63d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -29,10 +29,10 @@ Downloads - @string/files_label + @string/files_label - @string/files_label + @string/files_label Open from -- GitLab From 74b9d2bd750e956b82fd19730869b6c994ca1125 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Tue, 6 Sep 2022 16:27:00 +0530 Subject: [PATCH 2/5] Change app icon to our custom icon --- res/drawable/ic_launcher_background.xml | 36 ++++++++++++++---- res/drawable/ic_launcher_foreground.xml | 49 ++++++++++++------------- res/drawable/ic_launcher_monochrome.xml | 15 -------- res/mipmap-anydpi/ic_launcher.xml | 24 +++++++++--- 4 files changed, 69 insertions(+), 55 deletions(-) delete mode 100644 res/drawable/ic_launcher_monochrome.xml 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/drawable/ic_launcher_monochrome.xml b/res/drawable/ic_launcher_monochrome.xml deleted file mode 100644 index 38f9fbb9b..000000000 --- a/res/drawable/ic_launcher_monochrome.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/res/mipmap-anydpi/ic_launcher.xml b/res/mipmap-anydpi/ic_launcher.xml index b58c81ff9..d24a0f7ef 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 0e88aa2b8d52b489dfc3659dea57c2fe55b99fc8 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Thu, 15 Sep 2022 19:24:13 +0530 Subject: [PATCH 3/5] 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 6cda44131..e9cae0778 100644 --- a/Android.bp +++ b/Android.bp @@ -40,6 +40,7 @@ java_defaults { "androidx.transition_transition", "apache-commons-compress", "com.google.android.material_material", + "elib", "guava", "modules-utils-build_system", ], 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 143b3e693..71c0d45b2 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,7 +26,6 @@ #36ffffff #9aa0a6 - ?android:colorSecondary #202124 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 12b8762aa..48a5f713e 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -18,13 +18,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 @@ -55,7 +55,7 @@ #1f000000 ?android:colorSecondary - @color/app_background_color + @color/e_action_bar @color/primary @color/primary diff --git a/res/values/styles.xml b/res/values/styles.xml index b27f2ea55..bbbb0de2b 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -17,6 +17,7 @@ @@ -103,6 +104,8 @@