Repository navigation
Animate dock items, the tray flyout and window previews - #154
Open
JulienMaille wants to merge 6 commits into
Open
JulienMaille wants to merge 6 commits into
JulienMaille wants to merge 6 commits into
Conversation
The dock slid in with a small overshoot, but its notification flyout appeared all at once. Start the flyout slightly small and let it settle just past full size, using the same ease-out-back curve.
Window previews only faded before: the popup appeared at its full position and the alpha came up, with no sense of settling. Give the popup a little travel as it shows. It starts 10 DIP lower and rises to its rest position over 180 ms, easing with the dock's usual smoothstep so the motion reads across the whole show rather than flickering at its start. The popup records the position the layout gave it, so a resize while it shows keeps the rise anchored and the popup ends exactly where it belongs. An 11 ms tick drives it, as the fade already needed, so nothing new runs while the dock is idle.
The cherry-picks left the motion code heavier than it needs to be, and one field, `frame_paced`, was never read, so CI's clippy run failed. Changes that keep the motion exactly as it was: - Drop the dead `frame_paced` field. - Build each `Motion` through `arriving` or `departing` instead of spelling out the same six fields at every call site. - Reuse `ease::out_cubic` rather than repeating its cubic in `Motion::progress`. - Name the position a tray icon had before the tray changed (`TrayPrior`) instead of passing a five-element tuple around, and split `update_tray_motion` into `tray_prior` and `queue_tray_exits` so each part states one thing.
JulienMaille
marked this pull request as ready for review
November 30, 2026 22:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Three related motion changes to the dock:
The rise and the flyout bounce are the only parts not already upstream; the dock item motion and the preview fade both came from feat/dock-pins-motion and feat/dock-thumbnail-previews, where the preview rise had been lost in b7cf58f when previews were rewritten as popup-owned DWM thumbnails.
The last two commits are a tidy-up of the motion code (constructors on
Motion, a namedTrayPriorinstead of a five-tuple, splittingupdate_tray_motion) and a changelog entry. No behaviour change: the rise measured 860 -> 850 px over ~167 ms before and after the tidy-up.How I verified it
cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warningsand the same clippy with--features wisp/nightly,wisp/perf-trace, all clean. Before the tidy-up clippy failed on a deadframe_pacedfield the cherry-picks carried.cargo test --workspace: 283 pass, 4 ignored. New tests cover the rise's rest position and DPI scaling, the flyout's overshoot, and that a slide in overshoots while a slide out does not.What I did not test
measure-perf.ps1orbench/bench.ps1before and after. The motion only runs while something is moving and shares the existing 11 ms tick, so idle should be unchanged, but that is an argument, not a measurement.Not fixed
No issue.