mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Dark mode splash screen (closes #2540)
This commit is contained in:
parent
9942227c6c
commit
3bce3502d2
4 changed files with 22 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<item android:drawable="@color/splashBackgroundColor" />
|
<item android:drawable="?attr/colorBackgroundSplash" />
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<bitmap
|
<bitmap
|
||||||
|
|
15
app/src/main/res/values-night/themes.xml
Normal file
15
app/src/main/res/values-night/themes.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!--===============-->
|
||||||
|
<!-- Launch Screen -->
|
||||||
|
<!--===============-->
|
||||||
|
<style name="Theme.Splash" parent="Theme.Tachiyomi">
|
||||||
|
<item name="colorBackgroundSplash">@color/colorDarkPrimaryDark</item>
|
||||||
|
|
||||||
|
<item name="android:windowBackground">@drawable/splash_background</item>
|
||||||
|
<item name="android:statusBarColor">?attr/colorBackgroundSplash</item>
|
||||||
|
<item name="android:navigationBarColor">?attr/colorBackgroundSplash</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</resources>
|
|
@ -25,5 +25,7 @@
|
||||||
<attr name="selectable_library_drawable" format="reference|integer"/>
|
<attr name="selectable_library_drawable" format="reference|integer"/>
|
||||||
<attr name="text_color_primary" format="reference|integer"/>
|
<attr name="text_color_primary" format="reference|integer"/>
|
||||||
<attr name="background_card" format="reference|integer"/>
|
<attr name="background_card" format="reference|integer"/>
|
||||||
|
<attr name="colorBackgroundSplash" format="reference|integer"/>
|
||||||
<attr name="icon_color" format="reference|integer"/>
|
<attr name="icon_color" format="reference|integer"/>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -161,9 +161,11 @@
|
||||||
<!-- Launch Screen -->
|
<!-- Launch Screen -->
|
||||||
<!--===============-->
|
<!--===============-->
|
||||||
<style name="Theme.Splash" parent="Theme.Tachiyomi">
|
<style name="Theme.Splash" parent="Theme.Tachiyomi">
|
||||||
|
<item name="colorBackgroundSplash">@color/colorPrimary</item>
|
||||||
|
|
||||||
<item name="android:windowBackground">@drawable/splash_background</item>
|
<item name="android:windowBackground">@drawable/splash_background</item>
|
||||||
<item name="android:statusBarColor">@color/splashBackgroundColor</item>
|
<item name="android:statusBarColor">?attr/colorBackgroundSplash</item>
|
||||||
<item name="android:navigationBarColor">@color/splashBackgroundColor</item>
|
<item name="android:navigationBarColor">?attr/colorBackgroundSplash</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue