根因: applyThemeTemplate 读/写 this.config,但设置页预览 走的是 pendingUserCfg(临时编辑缓存),模板值在选择后只写入了 pendingUserCfg.THEME_TEMPLATE,applyThemeTemplate 读 this.config 则一直为 system/d 返回,导致模板不生效。 修复: - applyThemeTemplate 接受 preview 参数,预览态从 pendingUserCfg 读写,非预览态从 this.config 读写 - getPanelBgColorInt/getPanelTextColorInt 预览态优先从 pendingUserCfg 读取那4个颜色配置
40 KiB
40 KiB