refactor: 精简主题模板为设置页主题二选一

去掉之前多余的6套模板配色(ocean/sunset/forest/mono等),
只保留一个清晰的二选一功能:

- 动物岛风 (默认) — 当前 Animal Island 固定配色,不变
- 系统莫奈色 — 设置页 UI 使用系统 Monet 色系,与主面板一致

改动:
- THEME_TEMPLATE → SETTINGS_THEME (animal/monet)
- 删除 th_04_theme.js 的 getThemeTemplate/applyThemeTemplate
- buildSettingsGroupPanelView 直接根据 SETTINGS_THEME 用
  ui.colors 的 Monet 色构造 T 结构
- setPendingValue 中 SETTINGS_THEME 切换时重建设置页
This commit is contained in:
7015725
2026-05-15 02:24:28 +08:00
parent cb01591369
commit 32a30babcc
6 changed files with 43 additions and 132 deletions

View File

@@ -154,8 +154,8 @@ FloatBallAppWM.prototype.setPendingValue = function(k, v) {
this.state.pendingUserCfg[k] = v;
this.state.pendingDirty = true;
if (this.state.previewMode) {
// 主题模板切换需要重建整个设置页 UI配色来自 buildSettingsGroupPanelView
if (String(k) === "THEME_TEMPLATE") {
// 设置页主题切换需要重建整个设置页 UI配色来自 buildSettingsGroupPanelView
if (String(k) === "SETTINGS_THEME") {
try {
if (this.state.toolAppActive && this.replaceToolAppPage) {
this.replaceToolAppPage("settings_group");