之前主题模板只影响了 getPanelBgColorInt/getPanelTextColorInt,
但设置页 UI(buildSettingsGroupPanelView)的颜色全部来自
getAnimalIslandTheme() 硬编码,完全不经过模板逻辑。
修复:
1. buildSettingsGroupPanelView 开头判断是否选了非 system 模板,
若是则根据模板的 dayBg/dayText/nightBg/nightText 自动生成
一套兼容 T 结构的配色,覆盖 Animal Island 的 T 对象
2. 模板值从 pendingUserCfg 读取(预览态)
3. setPendingValue 中当 key=THEME_TEMPLATE 时,通过
replaceToolAppPage('settings_group') 重建整个设置页 UI,
使模板切换立即生效
2.3 KiB
2.3 KiB