fix: 修复深色模式下开屏白屏问题

- 在 values-night/themes.xml 中设置窗口背景色为黑色
- 在 values/themes.xml 中明确设置窗口背景色为白色
- 修改主题文件确保在不同主题模式下有正确的背景色
This commit is contained in:
yovinchen 2024-11-28 09:20:09 +08:00
parent 773c155d0c
commit 025b0aade0
2 changed files with 9 additions and 2 deletions

View 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>

View File

@ -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>