Skip to content

fix: open tooltips at their size instead of zooming in - #245

Merged
M4n0x merged 1 commit into
mainfrom
fix/244-tooltip-appear-animation
Oct 23, 2026
Merged

M4n0x merged 1 commit into
mainfrom
fix/244-tooltip-appear-animation

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Problem

When a widget's tooltip opened, it showed up shrunken with blurred text for a moment, then grew to its size. Fixes #244.

Changes

  • WidgetPopup.showTooltip sets animationBehavior = .none on the tooltip's panel. A tooltip is ordered in at full opacity, so macOS played its window zoom-in on it. The bar's other panels already turn it off. Click popups weren't affected because they start at alphaValue = 0 and fade in themselves, so they're unchanged.
  • hoverTooltipsFitTheirTextAndDoNotCaptureClicks now expects the tooltip panel's animationBehavior to be .none.

Testing

  • swift test --filter "PresentationIntegrationTests|NativePresentationTests|Popup|Tooltip": 30 tests pass. The new expectation failed before the fix.
  • I sampled the real composited frames with a temporary test, which isn't committed. It opened a tooltip behind the wallpaper, so nothing showed on screen, and captured its window with CGWindowListCreateImage every ~1.5 ms from orderFront, on a 1× display:
    • Before: the first frame was 172 × 52 px with blurred text, and the tooltip changed size 3 times over ~30–40 ms before settling at 176 × 54.
    • After: the first frame was 176 × 54 and never changed, in 3 runs.
    • A click popup captured the same way had a single frame at its final size, with or without the system animation.
  • No screenshots: the glitch lasts about 35 ms, and the frame sizes above show it better.
  • Not checked: the morph window that appears when an open popup switches to another widget's popup. It also appears at full opacity, so it may get the same zoom-in. It's left unchanged here to keep this to the tooltip.

Merging

A single commit, so any merge method works.

Claude Opus 5.5 via Claude Code

A tooltip is ordered in at full opacity with the window's default
animation behavior, so macOS played its zoom-in on it: the tooltip
first composited shrunken with blurred text, then grew to its size
over about 35 ms. Popups fade in from transparent and weren't
affected.

Fixes #244
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 22, 2026 14:54
@M4n0x
M4n0x merged commit ac723c9 into main Oct 23, 2026
7 checks passed
@M4n0x
M4n0x deleted the fix/244-tooltip-appear-animation branch October 23, 2026 05:15
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A tooltip opens shrunken and blurred, then grows to its size

1 participant