use DayNight theme for splas screen
it doesn’t seem to be possible to make the splash screen use the configured theme but we can follow the system’s theme on supported Android versions
This commit is contained in:
parent
8abf861303
commit
8e57a7622c
|
@ -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/grey50"/>
|
||||
<item android:drawable="@color/splash_screen_background" />
|
||||
|
||||
<item>
|
||||
<bitmap
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="splash_screen_background">#ff424242</color> <!-- gray800 -->
|
||||
<color name="splash_screen_status_bar">#ff282828</color> <!-- gray900 -->
|
||||
</resources>
|
|
@ -40,5 +40,8 @@
|
|||
<!-- scanner -->
|
||||
<color name="scan_result_dots">#c04CAF50</color>
|
||||
|
||||
<color name="splash_screen_background">#fffafafa</color> <!-- gray50 -->
|
||||
<color name="splash_screen_status_bar">#ffe0e0e0</color> <!-- gray300 -->
|
||||
|
||||
<color name="blue500">#ff2196f3</color>
|
||||
</resources>
|
|
@ -363,8 +363,8 @@
|
|||
<item name="android:navigationBarColor" tools:targetApi="21">@color/black</item>
|
||||
</style>
|
||||
|
||||
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
|
||||
<item name="colorPrimaryDark">@color/grey300</item>
|
||||
<style name="SplashTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<item name="colorPrimaryDark">@color/splash_screen_status_bar</item>
|
||||
<item name="android:windowBackground">@drawable/background</item>
|
||||
</style>
|
||||
|
||||
|
|
Loading…
Reference in New Issue