From bf2adeefbe987740cbd54b32057a1f43aadffc25 Mon Sep 17 00:00:00 2001 From: fanlusky <1730976608@qq.com> Date: Tue, 28 Jul 2026 15:20:28 +0800 Subject: [PATCH] feat(settings): add candidate appearance controls and sync preview behavior Add candidate font, size, color, and page size controls with system font dropdowns. Keep the settings preview aligned with theme, helpcode visibility, and browser/WebView runtime updates. --- .../horizontal_candidate_window_dark.html | 15 +- .../horizontal_candidate_window_light.html | 15 +- .../vertical_candidate_window_dark.html | 15 +- .../vertical_candidate_window_light.html | 15 +- .../ime-settings/src/modules/appearance.ts | 243 +++++++++++++++++- .../ime-settings/src/modules/config-sync.ts | 18 +- .../ime-settings/src/modules/helpcode.ts | 5 + .../ime-settings/src/modules/input.ts | 3 + .../ime-settings/src/modules/shared.ts | 155 ++++++----- .../ime-settings/src/modules/theme.ts | 2 + .../ime-settings/src/partials/appearance.html | 81 ++++++ .../partials/candidate/candidate-wnd-h.html | 18 +- .../partials/candidate/candidate-wnd-v.html | 16 +- .../settings/ime-settings/src/styles/base.css | 1 - .../src/styles/components/dropdown.css | 35 +++ .../src/styles/modules/appearance.css | 63 +++++ 16 files changed, 604 insertions(+), 96 deletions(-) diff --git a/ui-html/webview2/candwnd/horizontal_candidate_window_dark.html b/ui-html/webview2/candwnd/horizontal_candidate_window_dark.html index 5e4c25f4..99156f46 100644 --- a/ui-html/webview2/candwnd/horizontal_candidate_window_dark.html +++ b/ui-html/webview2/candwnd/horizontal_candidate_window_dark.html @@ -6,9 +6,16 @@ (IME)VCandWnd