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() { 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