refactor: 主题颜色值统一引用 colors.xml 定义的命名颜色

1. 新增 colors.xml 颜色定义
   - 普通模式: mainWindowBackgroundColor, mainWindowTextColor, buttonBackgroundColor, debugTextColor
   - 深色模式: 同上,颜色值适配深色主题

2. 重构 styles.xml 颜色引用
   - APPBaseTheme 和 DebugActivityTheme 中的颜色值改为 @color/xxx 引用
   - 统一使用命名颜色属性

3. 重构 MyDebugActivityTheme
   - 继承父主题的颜色属性定义
This commit is contained in:
2026-05-11 10:00:26 +08:00
parent e8667bb26f
commit 54b040285c
6 changed files with 36 additions and 24 deletions

View File

@@ -6,8 +6,8 @@
<style name="MyDebugActivityTheme" parent="DebugActivityTheme">
<item name="colorTittle">?attr/mainWindowDarkTextColor</item>
<item name="colorTittleBackgound">#FF1E3A5F</item>
<item name="colorText">?attr/mainWindowDarkTextColor</item>
<item name="colorTittleBackgound">@color/buttonBackgroundColor</item>
<item name="colorText">?attr/debugTextColor</item>
<item name="colorTextBackgound">?attr/mainWindowDarkBackgroundColor</item>
</style>
</resources>

View File

@@ -6,8 +6,8 @@
<style name="MyDebugActivityTheme" parent="DebugActivityTheme">
<item name="colorTittle">?attr/mainWindowTextColor</item>
<item name="colorTittleBackgound">#FF00B322</item>
<item name="colorText">?attr/mainWindowTextColor</item>
<item name="colorTittleBackgound">@color/buttonBackgroundColor</item>
<item name="colorText">?attr/debugTextColor</item>
<item name="colorTextBackgound">?attr/mainWindowBackgroundColor</item>
</style>
</resources>