Files
WinBoLL/libappbase
LaizyBoy 24af31d51d 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
2026-05-10 07:22:06 +08:00
..