Repository navigation
fix: keep the focused window's box steady on hover without magnification - #631
Conversation
The box behind the focused window's icon hugs the icon while magnification zooms it. It read that from the magnifier, which tracks every hover whether magnification is on or not, so with magnification off the box still shrank from 20 × 18 to 18 × 14 pt on every hover. It now counts as magnifying only when the widget sets magnification. Fixes #626
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
Before and after
148 unchanged screens
Visual review: 148 screens, none changed. |
|
🎉 This PR is included in version 0.15.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Problem
With
focusedWindowStyleset andmagnificationoff, the box behind the focused window's icon shrinks from 20 × 18 to 18 × 14 pt whenever the pointer is over the workspace widget. Fixes #626.Changes
WorkspaceViewpassedmagnifier.isActivetoFocusedWindowHighlightasmagnifying. The magnifier tracks every hover, whethermagnificationis set or not, so on any hover the box switched to its magnified outset: 2 pt beside the icon and none above and below, instead of 3 and 2 pt.magnifyingproperty now also requiresmagnification. Withmagnificationset nothing changes: the box still hugs the zoomed icon.Testing
swift build --build-tests;swift test --filteron the scene, magnification, workspace layout and architecture tests: 53 pass.scripts/check.sh --quickand commitlint pass."windows": trueand Terminal focused, in dark and light. Scenes can't hover, so the "pointer over" row is drawn with the outsetmainapplies on hover (2 pt beside the icon, 0 above and below). With this fix, hover keeps the resting box.Merging
One commit, any merge method. The feature for #627 changes the box's outset in another part of
BarView.swift; the two merge cleanly in either order.Claude Opus 5.5 via Claude Code