Skip to content

fix(panel): use regular glass style on macOS 26+ - #1202

Open
billxc wants to merge 1 commit into
rime:masterfrom
billxc:user/xiaocw/liquid-glass-opt-a
Open

billxc wants to merge 1 commit into
rime:masterfrom
billxc:user/xiaocw/liquid-glass-opt-a

Conversation

@billxc

@billxc billxc commented Nov 14, 2026

Copy link
Copy Markdown

Summary

Switch NSGlassEffectView.style from .clear to .regular on macOS 26+ (1 file, +1 / -1) to match the system input method candidate panel (IMKUIPanel).

  • .clear applies minimal tinting over the blurred backdrop, so dense underlying text bleeds through more strongly (Scene B) and light-appearance candidate panels over dark backdrops look noticeably dim (Scene D).
  • .regular adds the standard control tint used by IMKUIPanel, keeping candidate text legible across busy documents and high-contrast backgrounds while preserving Liquid Glass translucency.

Older macOS versions continue using NSVisualEffectView unchanged, and existing style/translucency + transparent back_color configuration behavior is untouched.

Visual Comparison

Liquid Glass comparison across 4 scenes

Offscreen CARenderer comparison across four scenes (DarkAqua and Aqua). Both Squirrel rows use translucency: true, transparent back_color, single-line layout, and highlight colors matched to IMKUIPanel (controlAccentColor) so only the glass style differs:

  • 1. macOS Native IMKUIPanel: system candidate panel reference.
  • 2. Before (.clear glass): NSGlassEffectView with .clear style.
  • 3. After (.regular glass): NSGlassEffectView with .regular style, matching IMKUIPanel backdrop tint and legibility.

Verification

  • git diff --check, swiftlint lint, and Squirrel target swiftc -typecheck passed with 0 warnings or violations.
  • Offscreen CARenderer verification across DarkAqua and Aqua appearances confirmed .regular glass matches IMKUIPanel backdrop luminance across all four scenes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant