feat(dark mode): 统一深色模式适配,所有窗体使用attrs.xml主题属性
## 核心变更 - 所有布局文件文本颜色统一使用 ?attr/* 主题属性引用 - 普通模式文本颜色: #000000 (黑色) - 暗黑模式文本颜色: #E0E0E0 (灰色) ## attrs.xml 属性统一 (libappbase) - 新增 AboutView 样式属性 (AboutView、AboutViewStyle) - 新增 ButtonStyle 样式属性 (buttonBackgroundColor、buttonTextColor) - 新增 DialogStyle 样式属性 (dialogBackgroundColor、dialogTextColor) - 新增通用窗体属性 (activityBackgroundColor、activityTextColor、toolbarBackgroundColor 等) - 移除 appbase/src/main/res/values/attrs.xml,合并到 libappbase ## styles.xml 主题配置 - 普通模式:背景色 #F5F5F5,文本色 #000000,工具栏/按钮背景色 #00B322 - 暗黑模式 (values-night):背景色 #0D1B2A,文本色 #E0E0E0,工具栏/按钮背景色 #1E3A5F ## 布局适配 - 所有窗体使用 ?attr/activityBackgroundColor / ?attr/activityTextColor - 所有工具栏使用 ?attr/toolbarBackgroundColor - 所有按钮使用 ?attr/buttonBackgroundColor / ?attr/buttonTextColor - 所有对话框使用 ?attr/dialogBackgroundColor / ?attr/dialogTextColor - AboutView 使用 ?attr/aboutViewBackgroundColor 等 ## Java代码适配 - GlobalCrashReportView.java: 默认颜色改为黑色 (Color.BLACK) - CrashHandler.java: 添加 isNightMode 判断,动态设置文本颜色 - AboutView.java: 深色模式标题颜色调整为 gray_500
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Sat May 09 21:14:54 GMT 2026
|
||||
#Sun May 10 07:19:39 CST 2026
|
||||
stageCount=0
|
||||
libraryProject=libappbase
|
||||
baseVersion=15.16
|
||||
publishVersion=15.16.0
|
||||
buildCount=1
|
||||
buildCount=44
|
||||
baseBetaVersion=15.16.1
|
||||
|
||||
Reference in New Issue
Block a user