Ver Fonte

Fix splash screen status bar color

arkon há 5 anos atrás
pai
commit
cd90702fe5

+ 1 - 1
app/src/main/res/drawable/splash_background.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
 
-    <item android:drawable="@color/colorPrimary" />
+    <item android:drawable="@color/splashBackgroundColor" />
 
     <item>
         <bitmap

+ 2 - 0
app/src/main/res/values/colors.xml

@@ -8,6 +8,8 @@
     <color name="colorDarkPrimaryDark">#1C1C1D</color>
     <color name="colorAmoledPrimary">@color/md_black_1000</color>
 
+    <color name="splashBackgroundColor">@color/colorPrimary</color>
+
     <!-- Light Theme -->
     <color name="colorAccentLight">@color/md_blue_A400</color>
     <color name="textColorPrimaryLight">@color/md_black_1000_87</color>

+ 2 - 1
app/src/main/res/values/themes.xml

@@ -158,7 +158,8 @@
     <!--===============-->
     <style name="Theme.Splash" parent="Theme.Tachiyomi">
         <item name="android:windowBackground">@drawable/splash_background</item>
-        <item name="android:navigationBarColor">@color/colorPrimary</item>
+        <item name="android:statusBarColor">@color/splashBackgroundColor</item>
+        <item name="android:navigationBarColor">@color/splashBackgroundColor</item>
     </style>