【主要变更】 1. 新增主题颜色属性 - 新增 toolbarTextColor 属性定义(普通模式:黑色, 深色模式:#E0E0E0) - 新增 toolbarBackgroundColor 属性定义(普通模式:绿色, 深色模式:深蓝色) 2. 移除废弃颜色属性 - 移除 buttonTextColor 属性定义 - 移除 buttonBackgroundColor 属性定义 3. 更新布局文件(普通模式+深色模式) - view_log.xml: TextView(LV:)、CheckBox(Selectable/ALL) 使用 toolbarTextColor - view_log.xml: Button(Clean/Copy) 使用 toolbarBackgroundColor - item_logtag.xml: CheckBox 使用 toolbarTextColor - activity_main.xml: 所有Button使用 toolbarBackgroundColor - activity_crash_test.xml: 所有Button使用 toolbarBackgroundColor - activity_nfc_rsa_operate.xml: Button使用 toolbarBackgroundColor - dialog_winboll_host.xml: Button使用 toolbarBackgroundColor 4. 更新Java代码 - LogView.java: CheckBox和TextView使用主题属性获取 toolbarTextColor - LogTagSpinner.java: 下拉框文本颜色使用 toolbarTextColor 5. 更新样式定义 - styles.xml: 主题属性引用新的 toolbarTextColor/toolbarBackgroundColor - attrs.xml: 移除废弃属性,保留 toolbarTextColor/toolbarBackgroundColor - colors.xml: 添加新的颜色定义 【适配说明】 - 统一普通模式和深色模式的颜色管理 - 确保日志窗口所有控件颜色与主窗口保持一致
15 lines
630 B
XML
15 lines
630 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/mainWindowTextColor</item>
|
|
<item name="colorTittleBackgound">?attr/toolbarBackgroundColor</item>
|
|
<item name="colorText">?attr/debugTextColor</item>
|
|
<item name="colorTextBackgound">?attr/mainWindowBackgroundColor</item>
|
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
|
</style>
|
|
</resources>
|