Skip to content

feat(app): follow the system accent color and add snap haptics - #182

Merged
Limdongcheng merged 2 commits into
mainfrom
feat/system-accent
Nov 14, 2026
Merged

Limdongcheng merged 2 commits into
mainfrom
feat/system-accent

Conversation

@Limdongcheng

Copy link
Copy Markdown
Collaborator

Summary

  • Selection fills, selected text, links and Ribbon glyph tints follow the system accent color on macOS (NSColor.controlAccentColor) and Windows (DwmGetColorizationColor); Linux keeps the default blue. The accent is re-read when the window regains focus.
  • Selected text keeps at least 4.5:1 contrast against the selection fill, and the fill stays distinguishable from the panel for any accent.
  • Canvas chrome follows the system accent when Canvas accent is unset; a chosen Canvas accent still takes precedence.
  • On macOS, a Force Touch trackpad taps once when a dragged plot or shape engages a snap guide. Guide lines are unchanged on all platforms.

Validation

  • cargo pr-check
  • npm run build in docs/
  • Light and dark screenshots via PLOTIUM_SHOT on macOS

UI display logic

  • New or changed actions go through the command catalog (CommandId +
    describe) and are searchable in the command palette.
  • Hiding happens only at Ribbon-group level (dataset kind or width
    budget); transient states disable with a disabled_reason that says how
    to unblock.
  • No layout changes from background events; panels are never auto-closed.
  • New panels or empty regions show an empty state with a next step.
  • Docs updated in docs/ (English and zh-CN) for user-visible behavior.

@Limdongcheng
Limdongcheng requested a review from nmrtist November 14, 2026 16:26
@Limdongcheng
Limdongcheng enabled auto-merge (squash) November 14, 2026 17:01
@Limdongcheng
Limdongcheng merged commit 713e548 into main Nov 14, 2026
11 checks passed
@Limdongcheng
Limdongcheng deleted the feat/system-accent branch November 14, 2026 17:02
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.

2 participants