Merge pull request #292 from chunfengyao/master-TranslucentStatusBar

TranslucentStatusBar by default.
This commit is contained in:
Jannis Mattheis
2023-05-15 19:03:23 +02:00
committed by GitHub
4 changed files with 11 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimary">#3867d6</color>
<color name="colorNavPrimary">#000000</color>
<color name="colorPrimaryDark">#3867d6</color>
<color name="colorAccent">#1c49b4</color>

View File

@@ -3,6 +3,8 @@
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:statusBarColor">#000</item>
<!--Android 5.x should set statusBarColor with transparent, or statusBar will be grey-->
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
</resources>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimary">#3867d6</color>
<color name="colorNavPrimary">#FFFFFF</color>
<color name="colorPrimaryDark">#3867d6</color>
<color name="colorAccent">#1c49b4</color>

View File

@@ -14,11 +14,17 @@
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<!--Android 5.x should set statusBarColor with transparent, or statusBar will be grey-->
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
<style name="AppTheme.SplashScreen" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@drawable/gotify_splash</item>
<item name="postSplashScreenTheme">@style/AppTheme.NoActionBar</item>
<!--Android 5.x should set statusBarColor with transparent, or statusBar will be grey-->
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.Material3.Dark" />