Skip to content

feat(app): add chrome motion with a reduce motion preference - #183

Merged
Limdongcheng merged 1 commit into
mainfrom
feat/chrome-motion
Nov 14, 2026
Merged

Limdongcheng merged 1 commit into
mainfrom
feat/chrome-motion

Conversation

@Limdongcheng

Copy link
Copy Markdown
Collaborator

Summary

  • Add a motion module for chrome animations. Durations and spring parameters live in one place, and animation state is keyed per window.
  • Add a Reduce motion preference under Appearance. Follow system reads the macOS or Windows accessibility setting; on Linux the default keeps animations on. When reduced, egui animations, scroll glides, and springs (including zoom-to-fit) change immediately.
  • Ribbon task tabs: the selection highlight slides between tabs. Tab positions and widths do not change.
  • Dialogs and the command palette fade in with a slight scale from 96%.
  • Hover colours ease in and out on the sidebar toggles, the Preferences category list, and the Canvas/Data switcher. Presses show at once.
  • Document the preference in English and Chinese.

Validation

  • cargo pr-check
  • npm run build in docs/
  • New tests: reduced motion lands springs and disables egui animation, dialogs restart their fade after being hidden, hovering a task tab keeps every tab in place, and the preference round-trips with a platform-specific default label.

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 enabled auto-merge (squash) November 14, 2026 17:06
@Limdongcheng
Limdongcheng merged commit 06e2bc1 into main Nov 14, 2026
11 checks passed
@Limdongcheng
Limdongcheng deleted the feat/chrome-motion branch November 14, 2026 17:16
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