refactor: 重构调试主题,统一定义应用调试文字颜色
1. 重命名调试主题属性 - themeGlobalCrashActivity → themeDebug - GlobalCrashActivityTheme → DebugActivityTheme 2. 新增 debugTextColor 属性 - 定义 debugTextColor 属性,用于统一应用调试文字颜色 - 普通模式: 灰色 #808080 - 深色模式: 绿色 #FF00FF00 3. 重构视图控件 - view_globalcrashreport.xml 和 view_log.xml 使用 themeDebug 主题 - 控件颜色统一引用主题属性 - 日志显示文本使用 debugTextColor 属性 4. GlobalCrashReportView Java 代码 - 新增 obtainDebugTextColor() 方法获取主题中的 debugTextColor - 崩溃视图文字颜色通过主题属性获取,与日志视图一致
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<resources>
|
||||
|
||||
<!-- 全局主题属性 -->
|
||||
<attr name="themeGlobalCrashActivity" format="reference"/>
|
||||
<attr name="themeDebug" format="reference"/>
|
||||
|
||||
<!-- GlobalCrashActivity 样式属性 -->
|
||||
<declare-styleable name="GlobalCrashActivity">
|
||||
@@ -55,4 +55,7 @@
|
||||
<attr name="mainWindowDarkBackgroundColor" format="color"/>
|
||||
<attr name="mainWindowDarkTextColor" format="color"/>
|
||||
|
||||
<!-- DebugLogStyle 应用调试日志样式属性 -->
|
||||
<attr name="debugTextColor" format="color"/>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user