feat: 容器统一加灰色边框,borderCornerRadius 属性统一管理圆角

创建通用灰色边框 drawable(5 模块各一份):
  - bg_container_border.xml:透明填充 + 1dp #B0B0B0 描边
  - 自动应用到 80 个无背景容器的布局文件

深色模式 bg_frame 加边框:
  - drawable-night/bg_frame.xml(mymessagemanager + aes):
    背景 shape 添加 1dp #666666 描边,保留渐变蒙版

统一圆角为 6dp(borderCornerRadius 属性化):
  - 5 模块 attrs.xml 声明 borderCornerRadius(dimension)
  - 12 个主题(6 普通 + 6 深色)设置 borderCornerRadius=6dp
  - 12 个 drawable 文件约 40 处 corners 改用 ?attr/borderCornerRadius
    (bg_frame / bg_frame_black/white / bg_shadow / bg_border_round
     bg_toolbar_log / acard_frame_main / atoolbar_frame / ohpcts_frame
     bg_container_border 等)
  - 3 个 Java 自定义控件(AToolbar / ASupportToolbar / AboutView)
    从硬编码 px 改为读取 ?attr/borderCornerRadius

受益布局模块:libaes / libappbase / appbase / mymessagemanager / aes / winboll
This commit is contained in:
LaizyBoy
2026-05-09 10:59:55 +08:00
parent b385aa7030
commit 4e4673a93b
108 changed files with 282 additions and 317 deletions

View File

@@ -2,6 +2,7 @@
<resources>
<style name="MyAppTheme" parent="AESTheme">
<item name="borderCornerRadius">6dp</item>
<item name="android:textSize">20sp</item>
<item name="android:windowBackground">@color/window_background</item>
<item name="android:textColorPrimary">@color/text_color_primary_default</item>
@@ -15,6 +16,7 @@
<style name="MyDepthAESTheme" parent="DepthAESTheme">
<item name="borderCornerRadius">6dp</item>
<item name="android:textSize">20sp</item>
<item name="android:windowBackground">@color/window_background</item>
<item name="android:textColorPrimary">@color/text_color_primary_depth</item>
@@ -27,6 +29,7 @@
</style>
<style name="MySkyAESTheme" parent="SkyAESTheme">
<item name="borderCornerRadius">6dp</item>
<item name="android:textSize">20sp</item>
<item name="android:windowBackground">@color/window_background</item>
<item name="android:textColorPrimary">@color/text_color_primary_sky</item>
@@ -39,6 +42,7 @@
</style>
<style name="MyGoldenAESTheme" parent="GoldenAESTheme">
<item name="borderCornerRadius">6dp</item>
<item name="android:textSize">20sp</item>
<item name="android:windowBackground">@color/window_background</item>
<item name="android:textColorPrimary">@color/text_color_primary_golden</item>
@@ -51,6 +55,7 @@
</style>
<style name="MyMemorAESTheme" parent="MemorAESTheme">
<item name="borderCornerRadius">6dp</item>
<item name="android:textSize">20sp</item>
<item name="android:windowBackground">@color/window_background</item>
<item name="android:textColorPrimary">@color/text_color_primary_memor</item>
@@ -63,6 +68,7 @@
</style>
<style name="MyTaoAESTheme" parent="TaoAESTheme">
<item name="borderCornerRadius">6dp</item>
<item name="android:textSize">20sp</item>
<item name="android:windowBackground">@color/window_background</item>
<item name="android:textColorPrimary">@color/text_color_primary_tao</item>