From 58b2cace163d1aad7f40e7e23fe75b760a5c9df7 Mon Sep 17 00:00:00 2001 From: LaizyBoy Date: Tue, 12 May 2026 09:52:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84AES=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E7=BB=A7=E6=89=BFAPPBaseTheme?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AESTheme改为继承Theme.AppCompat并支持APPBaseTheme属性 - 修复运行时inflate错误:将?attr/xxx引用改为@color/xxx直接引用 - 添加DebugActivityTheme调试样式支持 - 添加必需的颜色定义(toolbarBackgroundColor、mainWindowBackgroundColor等) - 新增夜间模式主题配置(values-night目录) - 清理冗余注释和无用的调试配色方案 - aes模块的MyAESTheme添加themeDebug属性 修改文件: - aes/src/main/res/values/styles.xml:添加MyDebugActivityTheme - aes/src/main/res/values-night/:新增夜间模式样式 - libaes/src/main/res/values/colors.xml:添加主题必需颜色 - libaes/src/main/res/values/styles.xml:重构使用AppCompat主题 - libaes/src/main/res/values-night/:新增夜间模式颜色和样式 --- aes/build.properties | 4 +- aes/src/main/res/values-night/styles.xml | 16 ++ aes/src/main/res/values/styles.xml | 13 +- libaes/build.properties | 4 +- libaes/src/main/res/values-night/colors.xml | 33 +++ libaes/src/main/res/values-night/styles.xml | 112 +++++++++ libaes/src/main/res/values/colors.xml | 30 +-- libaes/src/main/res/values/styles.xml | 237 ++++---------------- 8 files changed, 233 insertions(+), 216 deletions(-) create mode 100644 aes/src/main/res/values-night/styles.xml create mode 100644 libaes/src/main/res/values-night/colors.xml create mode 100644 libaes/src/main/res/values-night/styles.xml diff --git a/aes/build.properties b/aes/build.properties index 2cfbe66..3900167 100644 --- a/aes/build.properties +++ b/aes/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Mon May 11 20:41:43 HKT 2026 +#Tue May 12 09:45:14 CST 2026 stageCount=3 libraryProject=libaes baseVersion=15.20 publishVersion=15.20.2 -buildCount=0 +buildCount=5 baseBetaVersion=15.20.3 diff --git a/aes/src/main/res/values-night/styles.xml b/aes/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..5ac0e76 --- /dev/null +++ b/aes/src/main/res/values-night/styles.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/aes/src/main/res/values/styles.xml b/aes/src/main/res/values/styles.xml index 1da88ba..267068a 100644 --- a/aes/src/main/res/values/styles.xml +++ b/aes/src/main/res/values/styles.xml @@ -1,5 +1,16 @@ - + + + \ No newline at end of file diff --git a/libaes/build.properties b/libaes/build.properties index bb9f57c..3900167 100644 --- a/libaes/build.properties +++ b/libaes/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Mon May 11 20:41:30 HKT 2026 +#Tue May 12 09:45:14 CST 2026 stageCount=3 libraryProject=libaes baseVersion=15.20 publishVersion=15.20.2 -buildCount=0 +buildCount=5 baseBetaVersion=15.20.3 diff --git a/libaes/src/main/res/values-night/colors.xml b/libaes/src/main/res/values-night/colors.xml new file mode 100644 index 0000000..3935b96 --- /dev/null +++ b/libaes/src/main/res/values-night/colors.xml @@ -0,0 +1,33 @@ + + + + #FFFFFFFF + #FF03AB4E + #FF027C39 + #FF3DDC84 + #FFFFFB8D + #FFA9A9A9 + #FF000000 + #FFFFFFFF + #FF7D3F12 + #FFCC6E2B + #FFF4B98F + + @color/colorPrimaryDark + @color/colorPrimary + @color/colorAccent + + @color/colorAccent + @color/colorPrimary + + @color/colorAccent + @color/colorPrimary + @color/colorPrimaryDark + + #FF03AB4E + #FFFFFFFF + #FF2C2C2C + #FFFFFFFF + #FFFF0000 + + \ No newline at end of file diff --git a/libaes/src/main/res/values-night/styles.xml b/libaes/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..020baff --- /dev/null +++ b/libaes/src/main/res/values-night/styles.xml @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/libaes/src/main/res/values/colors.xml b/libaes/src/main/res/values/colors.xml index 58d507b..5c0a9cc 100644 --- a/libaes/src/main/res/values/colors.xml +++ b/libaes/src/main/res/values/colors.xml @@ -1,11 +1,11 @@ - - + + #FF000000 #FF03AB4E #FF027C39 #FF3DDC84 - #FFFFFB8D + #FFFFFB8D #FFA9A9A9 #FF000000 #FFFFFFFF @@ -24,22 +24,10 @@ @color/colorPrimary @color/colorPrimaryDark - + #FF03AB4E + #FFFFFFFF + #FFFFFFFF + #FF000000 + #FFFF0000 - - + \ No newline at end of file diff --git a/libaes/src/main/res/values/styles.xml b/libaes/src/main/res/values/styles.xml index 93e9469..8354a03 100644 --- a/libaes/src/main/res/values/styles.xml +++ b/libaes/src/main/res/values/styles.xml @@ -1,255 +1,112 @@ + + + - + - - - - - - - - - + - + - + + \ No newline at end of file