fix: 修复深色模式下开屏白屏问题
- 在 values-night/themes.xml 中设置窗口背景色为黑色 - 在 values/themes.xml 中明确设置窗口背景色为白色 - 修改主题文件确保在不同主题模式下有正确的背景色
This commit is contained in:
parent
773c155d0c
commit
025b0aade0
6
app/src/main/res/values-night/themes.xml
Normal file
6
app/src/main/res/values-night/themes.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.Bookkeeping" parent="android:Theme.Material.NoActionBar">
|
||||
<item name="android:windowBackground">@android:color/black</item>
|
||||
</style>
|
||||
</resources>
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Theme.Bookkeeping" parent="android:Theme.Material.Light.NoActionBar" />
|
||||
<style name="Theme.Bookkeeping" parent="android:Theme.Material.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@android:color/white</item>
|
||||
</style>
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user