Repository navigation
feat: magnify workspace icons like the Dock - #319
Merged
Merged
Conversation
Seb-GRAF
force-pushed
the
feat/workspace-magnification
branch
from
October 26, 2026 09:48
2929694 to
236e31f
Compare
|
🎉 This PR is included in version 0.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
Workspace app icons are small, and nothing helps you aim at one or tell which app it is until the native tooltip shows after its delay. Fixes #318.
Changes
WorkspaceMagnifier.swift): the widget's x axis stretches around the pointer. Icons zoom from their top edge, up toworkspace.magnificationunder the pointer, fading out over 36 points. The stretch only moves neighbours by the icons' own growth, so gaps keep about their resting size and the point under the pointer stays put. Workspace numbers and window titles move with the icons, and cell backgrounds and the cell underline widen with their cells. Everything is drawing only, so the bar's layout and the other widgets never move..globalspace at draw time withvisualEffect. Nested hosting views share window coordinates, which covers the drag source and drop target views. Backgrounds track their frame withonGeometryChange. Reading frames once per pointer move left parts stale after a drop.store.popup.showTooltip). It follows only the pointer's x, so the lower part of a zoomed icon keeps it. It waits 100 ms before showing, so a quick sweep doesn't build a tooltip window for every icon it crosses. The native tooltips are off while magnification is on.workspace.magnificationis decoded and added to the schema, and it's documented indocs/widgets.mdanddocs/settings.md.Testing
swift testfor the schema and decoder check, workspace window drag, workspace layout, presentation and widget tests: 102 tests pass.sampleprofile while the bar was in use showed about 1 ms per frame on average for drawing and layout.appGlyphstext sharpness when zoomed, bars shorter than about 30 points (zoomed icons can be cut off at the bar's bottom), Reduce Motion, multiple displays, and the More widgets popup.Screenshots and a recording to follow.
Merging
One commit, so any merge method keeps it.
Claude Opus 5.5 via Claude Code