Commit Graph
20 Commits
Author SHA1 Message Date
fanlusky 4ae5b842b7 fix(ui-html): WebView2 托盘菜单项圆角与外框同心对齐 2026-09-27 11:19:06 +08:00
linym c07aa8e878 fix(server,ui-html): 降低设置窗口激活卡顿 (#155)
激活时不再重推整份配置;HTML 按 UTF-8 二进制读取;契约脚本移到标记之后;最大化按钮矩形用 rAF 合并。
2026-09-08 22:47:26 +08:00
Evan Hu 5d5b661e14 fix(ui): 给候选窗、悬浮工具栏与托盘菜单加 Content-Security-Policy
这些页面会内联第三方皮肤的 CSS,而全仓此前没有任何 CSP,也没有 WebResourceRequested 过滤。上一个提交在注入阶段丢掉了远程引用,这一条是第二道防线:即使将来某条路径漏过,浏览器层面也不会真的把请求发出去。

策略按这些页面实际用到的资源来定,没有多给:default-src 'none' 关闭其余一切(包括 connect-src,这些页面不含任何 fetch/XHR/WebSocket);script-src 放行 https://msime-contracts(schema.js 与 runtime.js)与内联脚本;style-src 放行内联样式;img-src 与 font-src 放行 data: 以及 https://appassets、https://candidate-skins 两个虚拟主机——皮肤被内联时正是变成这两种形式。

覆盖 candwnd、ftb、menu、default-themes 下的 15 个完整文档。body/ 下的 8 个文件是注入宿主文档的片段,没有 <head>,不适用。
2026-09-06 18:05:09 +09:00
Evan Hu 059957a491 feat(protocol): use pinned typed messages across WebView pages 2026-09-05 23:09:37 +09:00
fanlusky 902fceb55f Fix the issue where the menu displays a scrollbar. 2026-08-09 21:24:38 +08:00
fanlusky 0373f6ef6c Change the candidate window to a stable transparent host window occupying about 1/4 of the screen (updating with the cursor monitor/DPI), with content wrapping according to the host width and scrolling according to the host height, and fix the issues of high-DPI edge cropping and inconsistency between measurement and CSS limits. 2026-08-08 21:37:22 +08:00
fanlusky f5d8a4a384 refactor(menu): unify tray menu icons with settings 2026-07-28 16:08:14 +08:00
fanlusky fcf7c3a27c fix(menu): stop hardcoding floating toolbar toggle as on
Initial state is applied from config by the server so the tray
toggle no longer drifts from Settings.
Refs metasequoiaime/MetasequoiaImeTsf#17
2026-07-23 21:42:11 +08:00
fanlusky 02ba9d463e Improve the language bar right-click menu. 2026-07-20 02:07:51 +08:00
fanlusky c5f1df1571 chore: rename handwriting btn name 2026-07-19 02:43:31 +08:00
fanlusky ed52f72f7d Integrate the voice input method. 2026-07-18 09:07:56 +08:00
fanlusky 063a417d53 Remove some shortcut key hints from the right-click menu. 2026-07-17 23:58:11 +08:00
fanlusky c0d08b6baa Implement the on-screen keyboard function in the right-click menu. 2026-07-17 23:54:34 +08:00
fanlusky 835538551d Implement the emoji panel function in the right-click menu. 2026-07-17 23:50:42 +08:00
fanlumaster 19f0d880f8 chore 2026-02-28 17:23:39 +08:00
fanlumaster fe2ffdebc9 [menu]: send msg to cpp to show settings window 2025-12-31 18:00:36 +08:00
fanlumaster ce04588898 [ftb]: toggle ftb from tray menu 2025-12-31 13:58:59 +08:00
fanlumaster 84a7d96c92 fix: change id accordingly with server side 2025-11-10 21:13:07 +08:00
fanlumaster e953c76967 [menu]: remove hover item animations 2025-11-09 22:28:12 +08:00
fanlumaster b4a5b32a61 first commit 2025-11-08 01:18:18 +08:00