From 21ed38e449f3665b69e023c583cb55fd8c3c4c98 Mon Sep 17 00:00:00 2001 From: BlackMesa123 Date: Mon, 31 Jan 2022 17:30:02 +0100 Subject: [PATCH 1/2] app/oneuiexample: OUI4 themed app icon Signed-off-by: BlackMesa123 --- app/src/main/AndroidManifest.xml | 6 +++--- .../dlyt/yanndroid/oneuiexample/base/BaseThemeActivity.java | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f5df9d4e..e5ce0dfa 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -15,9 +15,6 @@ - + + diff --git a/app/src/main/java/de/dlyt/yanndroid/oneuiexample/base/BaseThemeActivity.java b/app/src/main/java/de/dlyt/yanndroid/oneuiexample/base/BaseThemeActivity.java index d4696e03..65b4503e 100644 --- a/app/src/main/java/de/dlyt/yanndroid/oneuiexample/base/BaseThemeActivity.java +++ b/app/src/main/java/de/dlyt/yanndroid/oneuiexample/base/BaseThemeActivity.java @@ -23,11 +23,14 @@ protected void onCreate(Bundle savedInstanceState) { int normalTheme = mUseOUI4Theme ? R.style.OneUI4Theme : R.style.OneUI3Theme; int altTheme = mUseOUI4Theme ? R.style.OneUI4AboutTheme : R.style.OneUI3AboutTheme; - setTheme(mUseAltTheme ? altTheme : normalTheme); new ThemeUtil(this); super.onCreate(savedInstanceState); + + int normalThemeNavBar = mUseOUI4Theme ? R.color.sesl4_round_and_bgcolor : R.color.sesl_round_and_bgcolor; + int altThemeNavBar = R.color.splash_background; + getWindow().setNavigationBarColor(getResources().getColor(mUseAltTheme ? altThemeNavBar : normalThemeNavBar)); } protected void switchOUITheme() { From 40c2d2741980791bfe1eedbbf5480f8308f1aba6 Mon Sep 17 00:00:00 2001 From: BlackMesa123 Date: Mon, 31 Jan 2022 17:42:55 +0100 Subject: [PATCH 2/2] app/themes: disable A12 SplashScreen Signed-off-by: BlackMesa123 --- yanndroid/oneui/src/main/res/values/themes.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yanndroid/oneui/src/main/res/values/themes.xml b/yanndroid/oneui/src/main/res/values/themes.xml index d082faba..5349edeb 100644 --- a/yanndroid/oneui/src/main/res/values/themes.xml +++ b/yanndroid/oneui/src/main/res/values/themes.xml @@ -12,6 +12,8 @@ true true + @color/sesl_round_and_bgcolor + @style/ListSeparatorStyle @color/primary_color @@ -60,6 +62,8 @@ @color/sesl4_round_and_bgcolor @color/sesl4_round_and_bgcolor + @color/sesl4_round_and_bgcolor + @color/sesl4_round_and_bgcolor @color/sesl4_primary_text