Skip to content

Ease the dock's motion and stop it when animations are off - #16491

Merged
dhh merged 1 commit into
quattrofrom
dock-motion
Oct 24, 2026
Merged

dhh merged 1 commit into
quattrofrom
dock-motion

Conversation

@dhh

@dhh dhh commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

The dock and its app grid timed their animations with bare numbers, so they kept moving after omarchy toggle animations turned animations off. Every duration now goes through Style.duration(), following the motion rules.

  • Auto-hide: the dock tucks away in 120ms and comes back in 180ms, so leaving is quicker than arriving. It keeps Easing.OutCubic: Style.easeOut crossed the short slide in a frame or two on screen and read as a pop.
  • Slots stepping aside during a drag slide with Style.easeOut.
  • Hover scale keeps its 120ms, now off with animations.
  • The app grid's scrim and card fade with Easing.OutCubic instead of linear, faster out (100ms) than back in (150ms).
  • The launch pulse is an endless loop, so with animations off it stops running rather than looping through zero-length steps, the same way Button's spinner is gated.

Verified on a 2560x1440 display at 1.6 scale by recording the dock at 60fps. Reveal is a visible 7-frame slide that settles in about 130ms, hide is 3 frames, and hovering an icon grows it over about 7 frames. With animations off, the reveal and hide each happen in a single frame, and launching an app shows no pulse, with the shell idle at 0-5% CPU. test/shell.d/dock-test.sh passes.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

The dock and app grid now respect the animations-off setting.

  • Dock motion follows the shell’s animation setting.
  • App-grid fades follow the shell’s animation setting.

No actionable issues found. dhh explicitly retained Easing.OutCubic for the tuck motion because the stronger curve looked abrupt. Review checks were read-only; no tests or live UI checks were run.

Reviews (1) · Last reviewed commit: "Ease the dock's motion and stop it when ..." · Reviewed by Greptile

@dhh
dhh merged commit 54d4b7b into quattro Oct 24, 2026
2 checks passed
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
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