Commit Graph

115 Commits

Author SHA1 Message Date
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
96bbb77127 docs: update README for ToolApp settings 2026-05-13 18:45:33 +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 backup-before-ui-nav-refactor-20260512103314 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
523d6e2044 docs: update README for signed ToolHub updates 2026-05-09 22:57:53 +08:00
7015725
7ce5ebeda8 polish: simplify ToolHub startup output 2026-05-07 23:52:33 +08:00
7015725
726ed4465a security: harden ToolHub update trust model 2026-05-07 23:46:46 +08:00
7015725
fdd896aca5 security: verify signed manifest before module updates 2026-05-07 23:25:41 +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