Compare commits

...

2 Commits

Author SHA1 Message Date
e7e630921d merge: 合并深色模式下开屏白屏问题修复 2024-11-28 09:20:45 +08:00
025b0aade0 fix: 修复深色模式下开屏白屏问题
- 在 values-night/themes.xml 中设置窗口背景色为黑色
- 在 values/themes.xml 中明确设置窗口背景色为白色
- 修改主题文件确保在不同主题模式下有正确的背景色
2024-11-28 09:20:09 +08:00
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>