Skip to content

Add NSWindow fade animation helpers#4

Merged
peterp merged 2 commits intomainfrom
feat/window-animations
Apr 28, 2026
Merged

Add NSWindow fade animation helpers#4
peterp merged 2 commits intomainfrom
feat/window-animations

Conversation

@peterp
Copy link
Copy Markdown
Owner

@peterp peterp commented Apr 28, 2026

Adds reusable fadeInAndUp / fadeOutAndDown extensions on NSWindow for smooth show/dismiss transitions on auxiliary windows.

No callers yet — landed standalone so upcoming window UI (settings window, status-item-driven panels) can adopt them. Net +33 lines, one new file.

Credit to @plyght — lifted from #1.

Test plan

  • `swift build` succeeds
  • App still launches and behaves identically (no callers added)

🤖 Generated with Claude Code

peterp and others added 2 commits April 28, 2026 22:09
Adds reusable fadeInAndUp / fadeOutAndDown extensions on NSWindow for
smooth window transitions. No callers yet — landed standalone so future
window UI (settings, status-item-driven panels) can adopt them.

Lifted from #1 by @plyght.

Co-Authored-By: plyght <plyght@peril.lol>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
When animations are on, the overlay now fades in on show and fades out
on hide using the new NSWindow helpers. Distance is 0 (alpha-only) since
the overlay is fullscreen and any slide reveals desktop edges.

Hide defers orderOut and the layer-clear into the fade completion so the
fade isn't on an already-emptied window.

Co-Authored-By: plyght <plyght@peril.lol>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@peterp peterp merged commit fdc979d into main Apr 28, 2026
1 check passed
@peterp peterp deleted the feat/window-animations branch April 28, 2026 20:20
@peterp peterp mentioned this pull request Apr 28, 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.

1 participant