Commit Graph

146 Commits

Author SHA1 Message Date
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
7015725
f1e2ab7c37 fix: register ToolApp animated back callback 2026-05-14 03:22:14 +08:00
7015725
a8cd7c193d fix: capture screen edge back for ToolApp 2026-05-14 03:10:25 +08:00
7015725
f8463490e1 fix: show ToolApp preview during system back gesture 2026-05-14 03:04:35 +08:00
7015725
65367f0d06 feat: add interactive ToolApp back preview 2026-05-14 03:00:15 +08:00
7015725
1d31638073 fix: add ToolApp edge swipe back fallback 2026-05-14 02:51:46 +08:00
7015725
e394a0f078 Remove duplicate inline color palette 2026-05-13 18:28:06 +08:00
7015725
3d0e57e813 Match ShortX icon picker with settings UI 2026-05-13 18:21:55 +08:00
7015725
b9d3dc89da style: simplify button editor section descriptions 2026-05-13 18:10:07 +08:00
7015725
7fd1430207 fix: add bottom gap to button manager footer 2026-05-13 08:32:06 +08:00
7015725
a5ecbec23b fix: keep button manager footer visible 2026-05-13 08:27:51 +08:00
7015725
e9b6052c6a style: apply minimal button management layout 2026-05-13 08:21:12 +08:00
7015725
648b45585a style: simplify button manager layout 2026-05-13 08:15:45 +08:00
7015725
3b6830e0ec style: polish button manager and editor layout 2026-05-13 07:38:48 +08:00
7015725
09f2aa4d07 feat: adapt ToolApp size to screen 2026-05-13 07:31:28 +08:00
7015725
080cb9abf7 refactor: keep ToolApp as single root view 2026-05-13 07:27:39 +08:00
7015725
2a53c872eb fix: show predictive back affordance for settings overlay 2026-05-13 07:20:26 +08:00
7015725
efb14bcde0 feat: support predictive back gesture 2026-05-12 20:43:42 +08:00
7015725
c4b886f83d style: refine button icon appearance editor 2026-05-12 20:32:08 +08:00
7015725
53967f77d2 feat: add collapsible button editor sections 2026-05-12 20:17:11 +08:00
7015725
46393fe9ba Revert "feat: split button editor into app subpages"
This reverts commit 5a4e3f6423.
2026-05-12 20:10:23 +08:00
7015725
5a4e3f6423 feat: split button editor into app subpages 2026-05-12 20:01:45 +08:00
7015725
c1643924b7 feat: app-style button manager page 2026-05-12 19:11:29 +08:00
7015725
c41e1479b9 feat: app-style ToolHub settings home 2026-05-12 17:31:02 +08:00
7015725
ea72f6b2eb fix: keep ToolHub app stack state on editor return 2026-05-12 11:06:54 +08:00
7015725
a0b6b92f57 feat: introduce ToolHub settings page stack 2026-05-12 10:47:13 +08:00
7015725
7b7fbdf9cf fix: handle system gestures for ToolHub panels 2026-05-12 10:24:30 +08:00
7015725
5c95d04fab feat: add system navigation button actions 2026-05-12 10:16:31 +08:00
7015725
0037aefcb7 fix: improve ToolHub startup and cleanup stability 2026-05-12 10:00:32 +08:00
7015725
8f6dcdcac1 fix: keep docked ball on edge while dragging 2026-05-07 23:06:23 +08:00
7015725
637858ab9c fix: avoid docked drag first-frame flash 2026-05-07 23:02:50 +08:00
7015725
0251419dbc fix: make docked float ball drag follow finger 2026-05-07 22:58:36 +08:00
7015725
e0b774ccd9 fix: adapt float ball position across rotations 2026-05-07 22:42:06 +08:00
linshenjianlu
ed9521cdf5 fix: smooth docked float ball drag transition 2026-05-03 14:29:17 +08:00
linshenjianlu
105d1c68c5 fix: optimize docked float ball drag 2026-05-03 14:23:37 +08:00
linshenjianlu
caf0e0b598 fix(panels): 适配输入法弹出时图标选择器高度 2026-05-03 14:02:30 +08:00