131 Commits

Author SHA1 Message Date
7015725
9ed8b39d0b fix: match color picker actions to settings style 2026-05-22 03:38:59 +08:00
7015725
04818a909e fix: refine color picker action sizing 2026-05-22 03:32:05 +08:00
7015725
2cd1fdd660 fix: restyle color picker action buttons 2026-05-22 03:30:09 +08:00
7015725
3069e4ec4d fix: align color picker bottom actions 2026-05-22 03:26:51 +08:00
7015725
c15869e319 fix: restore stable color picker overlay 2026-05-22 03:24:12 +08:00
7015725
451cfb6502 fix: restore color picker and top bar clicks 2026-05-22 03:15:34 +08:00
7015725
7af30639d1 fix: repair color picker overlay and back preview 2026-05-22 03:06:32 +08:00
7015725
86dca84a27 fix: improve ToolApp landscape edge back handling 2026-05-22 01:34:08 +08:00
7015725
66fa86b37d feat: keep settings detail in tablet landscape panes 2026-05-22 01:20:32 +08:00
7015725
0605201b97 Add settings master detail landscape layout 2026-05-22 01:00:46 +08:00
7015725
918c36ebc2 Optimize ToolHub settings responsive layout 2026-05-22 00:43:33 +08:00
7015725
a6b0e1b41b Revert "refactor: split picker module and improve diagnostics"
This reverts commit b36af7f78a.
2026-05-22 00:11:08 +08:00
7015725
b36af7f78a refactor: split picker module and improve diagnostics 2026-05-21 23:46:33 +08:00
7015725
eeac0baa88 Add update source switch 2026-05-19 05:13:06 +08:00
7015725
a6b5736f9a Fix float ball reflow in landscape 2026-05-19 05:06:27 +08:00
7015725
d557bdefa2 fix: lighten animal island main panel 2026-05-19 03:37:25 +08:00
7015725
4ce1924299 style: align main panel with animal island theme 2026-05-19 03:24:24 +08:00
7015725
63fdfb813e Fix long-press move jitter closing settings 2026-05-19 03:02:52 +08:00
7015725
6d8f50267c fix toolapp inner back edge width setting 2026-05-19 01:02:41 +08:00
7015725
eda34d24b1 fix: refresh stale ToolHub settings schema 2026-05-19 00:45:59 +08:00
7015725
3479cb25f2 feat: expand ToolApp back gesture ranges 2026-05-19 00:36:53 +08:00
7015725
1a7cefc630 feat: add ToolHub badge and back gesture settings 2026-05-19 00:26:11 +08:00
7015725
4c054dd4a3 feat: add floating ball background color setting 2026-05-19 00:10:25 +08:00
7015725
49ecd1e74e fix: align ToolApp back preview UI 2026-05-18 23:54:29 +08:00
7015725
e60d4e1b42 Increase ToolApp edge back zone to 48dp 2026-05-18 23:26:06 +08:00
7015725
ae8abc2908 fix: refine island settings bottom layout 2026-05-18 21:38:21 +08:00
7015725
df6f548c76 feat: add icon picker favorites 2026-05-18 14:50:37 +08:00
7015725
3492feb944 feat: optimize island icon picker layout 2026-05-18 14:42:18 +08:00
7015725
25ea8b7837 feat: unify picker island style 2026-05-18 14:28:59 +08:00
7015725
2e3ff489a0 feat: refine island settings UI 2026-05-18 14:20:29 +08:00
7015725
c7705348b4 feat: show settings save status 2026-05-18 14:03:36 +08:00
7015725
eff53e4156 feat: material you settings monet theme 2026-05-18 13:54:24 +08:00
7015725
342171e2ac fix: adapt settings pages to Monet theme 2026-05-18 03:49:54 +08:00
7015725
61a6bf1e72 fix: 按钮管理/按钮编辑等所有设置页 UI 元素跟随 SETTINGS_THEME
之前只覆盖了设置首页和分组页的配色切换,但按钮管理页内的
统计卡片、操作 chip、分区卡片、折叠分组、编辑面板等 UI
组件仍然直接硬编码 getAnimalIslandTheme()。

补全遗漏的 6 个函数:
- createButtonManagerSummaryCard
- createButtonManagerActionChip
- createButtonManagerPolishedCard
- createButtonEditorSectionCard
- createButtonEditorCollapsibleSection
- buildButtonEditorPanelView
2026-05-15 02:31:39 +08:00
7015725
efdcd3f187 fix: 设置页所有 UI 元素统一跟随 SETTINGS_THEME 切换
之前只有 buildSettingsGroupPanelView(分组页)检查了
SETTINGS_THEME,但首页面板 buildSettingsHomePanelView
和入口卡片 createSettingsHomeEntry 直接硬编码
getAnimalIslandTheme(),导致切换到 Monet 后首页仍是
动物岛风。

修复: 提取公共方法 applySettingsTheme(T, isDark, C, cfgTpl),
在三个构建位置统一调用:
- createSettingsHomeEntry (入口卡片:徽章/标题/按钮颜色)
- buildSettingsHomePanelView (设置首页:背景/统计卡/按钮)
- buildSettingsGroupPanelView (分组页:背景/卡片/预览开关)
2026-05-15 02:29:03 +08:00
7015725
b79961b08e fix: 设置页主题切换不再依赖预览模式开关
之前 SETTINGS_THEME 切换只在 previewMode=true 时重建
设置页 UI,用户必须手动打开边调边看才能看到变化。

改为: SETTINGS_THEME 改变时无条件重建设置页,立即生效。
2026-05-15 02:26:54 +08:00
7015725
32a30babcc 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 切换时重建设置页
2026-05-15 02:24:28 +08:00
7015725
cb01591369 fix: 主题模板真正应用到设置页 UI
之前主题模板只影响了 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,
   使模板切换立即生效
2026-05-15 02:11:38 +08:00
7015725
1c802f6948 fix: 主题模板真正应用到主面板渲染
根本问题: buildPanelView('main') 构建主面板时用的是
ui.colors.bgLight/bgDark(Monet 配色),完全不经过
getPanelBgColorInt/getPanelTextColorInt 的模板填充逻辑。
updatePanelBackground 虽然封装了统一取色,但实际没有在
主面板构建流程中被调用。

修复:
1. buildPanelView('main') 末尾调用 updatePanelBackground(panel)
   应用统一主题色(Monet/模板/自定义)
2. 保留临时背景色避免构建过程中的裸窗口闪烁
2026-05-15 02:08:58 +08:00
7015725
49d73786bf fix: 修复主题模板在设置页预览时不生效的问题
根因: applyThemeTemplate 读/写 this.config,但设置页预览
走的是 pendingUserCfg(临时编辑缓存),模板值在选择后只写入了
pendingUserCfg.THEME_TEMPLATE,applyThemeTemplate 读 this.config
则一直为 system/d 返回,导致模板不生效。

修复:
- applyThemeTemplate 接受 preview 参数,预览态从 pendingUserCfg
  读写,非预览态从 this.config 读写
- getPanelBgColorInt/getPanelTextColorInt 预览态优先从
  pendingUserCfg 读取那4个颜色配置
2026-05-15 02:00:25 +08:00
7015725
d2abbcca9f fix: schema 完整性检测添加 THEME_TEMPLATE 字段
旧设备上持久化的 schema.json 不含 THEME_TEMPLATE 项,
导致设置页的换装分组不显示主题模板选择器。
在 needReset 检测中补充该字段,触发旧 schema 自动重置。
2026-05-15 01:56:58 +08:00
7015725
d8a25aced9 feat: 添加主题模板一键切换功能
- 新增 THEME_TEMPLATE 配置项(system/animal/ocean/sunset/forest/mono)
- 新增 getThemeTemplate() 模板颜色映射
- 新增 applyThemeTemplate() 自动填充面板背景/文字色
- getPanelBgColorInt/getPanelTextColorInt 支持模板覆盖
- 设置页换装分组新增单选选择器
2026-05-15 01:54:40 +08:00
7015725
bba3d800af style: refine island settings home 2026-05-14 23:30:38 +08:00
7015725
7079b633bb style: soften balloon settings page 2026-05-14 23:24:48 +08:00
7015725
8907a2d5d8 style: soften animal island ToolApp copy 2026-05-14 23:17:09 +08:00
7015725
edb26dc593 feat: apply animal island style to ToolApp 2026-05-14 22:28:51 +08:00
7015725
b9409c9056 refactor: prioritize OnBackAnimationCallback 2026-05-14 18:44:57 +08:00
7015725
c92606246e fix: register ToolApp back animation after attach 2026-05-14 18:33:03 +08:00
7015725
47ca2f782f fix: stop fallback strips blocking system back 2026-05-14 18:28:56 +08:00
7015725
2b55e2bdd4 style: refresh ToolApp visual back experience 2026-05-14 18:23:31 +08:00