1. 新增 colors.xml 颜色定义 - 普通模式: mainWindowBackgroundColor, mainWindowTextColor, buttonBackgroundColor, debugTextColor - 深色模式: 同上,颜色值适配深色主题 2. 重构 styles.xml 颜色引用 - APPBaseTheme 和 DebugActivityTheme 中的颜色值改为 @color/xxx 引用 - 统一使用命名颜色属性 3. 重构 MyDebugActivityTheme - 继承父主题的颜色属性定义
13 lines
568 B
XML
13 lines
568 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources>
|
|
<style name="MyAPPBaseTheme" parent="APPBaseTheme">
|
|
<item name="themeDebug">@style/MyDebugActivityTheme</item>
|
|
</style>
|
|
|
|
<style name="MyDebugActivityTheme" parent="DebugActivityTheme">
|
|
<item name="colorTittle">?attr/mainWindowDarkTextColor</item>
|
|
<item name="colorTittleBackgound">@color/buttonBackgroundColor</item>
|
|
<item name="colorText">?attr/debugTextColor</item>
|
|
<item name="colorTextBackgound">?attr/mainWindowDarkBackgroundColor</item>
|
|
</style>
|
|
</resources> |