Skip to content

feat: add animation presets and popup transitions - #192

Merged
Seb-GRAF merged 1 commit into
mainfrom
feat/animation-presets
Oct 22, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
feat/animation-presets

Conversation

@Seb-GRAF

Copy link
Copy Markdown
Collaborator

Problem

The default bar felt static. Hovering an expanding app menu made its titles and the widget's background jump to full width, then fold back unevenly. The active app's name snapped while its width eased over 0.22 s, and popups only faded in over 0.15 s. Nothing in Settings changed how the bar moves; only bar.animationDuration and each widget's or popup's own animation did.

Changes

  • bar.motion presets. none, subtle, smooth (the new default), snappy and bouncy. Each sets the animation of widgets and of the widgets that slide beside them, how popups open, and the transition of changing text, wherever a widget or popup sets no animation or transition of its own. subtle keeps the timing main had. snappy is the iOS-like one: quick springs with a small overshoot.

    Preset Widgets Popups Changing text
    none at once at once at once
    subtle ease-out, 0.22 s fade, 0.15 s at once
    smooth smooth, 0.35 s fade, 0.25 s fade
    snappy snappy spring, 0.3 s zoom, 0.35 s fade
    bouncy bouncy spring, 0.45 s zoom, 0.4 s roll
  • bar.popupTransition. Sets how popups open and close, overriding the preset's choice: fade (today's fade with a slight grow from the top edge), unfold (revealed top to bottom with a mask), slide (down from the bar) or zoom (grows out of the widget that opened it). Each closes in reverse, and the shadow window from fix: draw a popup's own shadow without an outline around it #185 moves with the popup. With snappy and bouncy curves, popups move on a CASpringAnimation; other curves keep their ease curves. Reduce Motion still keeps only the fade.

  • Curves. snappy and bouncy join the curves widgets and popups accept in their own animation.

  • App menu hover. The expansion now goes through setExpanded(_:on:animation:) like the Sound widget's, so the whole widget follows one animation. The menu draws its titles from that state and clips them, so they're revealed left to right and fold away the same way. (It still inserts titles rather than using feat: reveal hover controls smoothly beside widgets #189's HoverExpansionLayout; it was written and tried before that landed.)

  • Overrides keep working. A widget's or popup's animation, a widget's transition and script output animation still win. bar.animationDuration still sets the duration, now keeping the preset's curve. Both new keys also work under screens.<kind>.bar.

  • Settings. Theme → Animation has Motion and Popups menus. Popups shows the current preset's choice until it's set, and Settings search finds the group. The widget Transition menu shows the preset's transition when the widget sets none.

  • Schema and README. Both document the new keys and values; the README has a new Animation section.

Changes in behavior to note:

  • Default: every widget without its own transition now cross-fades changing text, and fades in and out when its output's hidden changes.
  • Workspace highlight: it follows the preset's curve, so under subtle it eases out instead of using the smooth curve it always had.
  • Update popup: it keeps its own fixed animation, even under none.

Testing

  • The full swift test run passes, except BarEditViewTests.testUnorderedWindowsLayOutAllSectionsAndReportWidgetFramesWithoutRevealingTheNormalBar. The 0.35 s default edit-mode fade makes it fail every time until test: give slow edit-mode and AeroSpace mode waits room to finish #191 lands; with test: give slow edit-mode and AeroSpace mode waits room to finish #191's change applied here, it passes.
  • Added animationDurationTimesTheBarsMotionAndKeepsItsCurve. Updated the tests that build WidgetView and WorkspaceView, the unit transition test, and appMenuReportsExpansionAndReturnsToItsCollapsedWidth, which now passes the expanded state the widget feeds back.
  • StableBar --validate accepts the new values, including under a screen kind, and rejects others with "Use none, subtle, smooth, snappy or bouncy." and "Use fade, unfold, slide or zoom."
  • The developer tried the presets, popup transitions and app-menu hover on a scratch bar: a signed build of this branch running a copy of their configuration.
  • I couldn't watch the motion myself, so recordings are to follow. In particular, the unfold mask and the zoom origin need checking by eye.

Merging

One commit, so a squash keeps the same message. Merge #191 first.

Claude Opus 5.5 via Claude Code (in T3 Code)

@Seb-GRAF
Seb-GRAF force-pushed the feat/animation-presets branch from 609574e to 6329343 Compare October 22, 2026 08:54
@Seb-GRAF
Seb-GRAF merged commit 22aa125 into main Oct 22, 2026
7 checks passed
@Seb-GRAF
Seb-GRAF deleted the feat/animation-presets branch October 22, 2026 08:59
stablebar-releases Bot pushed a commit that referenced this pull request Oct 23, 2026
## [0.6.0](v0.5.0...v0.6.0) (2026-10-23)

### Features

* add a delay before the native menu bar appears ([#202](#202)) ([d462e69](d462e69))
* add animation presets and popup transitions ([#192](#192)) ([22aa125](22aa125))
* add compact battery and sound display settings ([0cb7a90](0cb7a90))
* add private package sources ([a4e6a08](a4e6a08)), closes [#248](#248)
* add, remove and choose screens for widgets from the Bar list ([b441fc4](b441fc4))
* apply Theme changes to every screen setup ([170be42](170be42))
* build, demo and land the bar in the setup intro ([#178](#178)) ([4e23a0b](4e23a0b))
* change the volume with a slider when hovering the Sound widget ([4a0dab0](4a0dab0))
* fade popups in with a shadow and the system material ([#170](#170)) ([bec220b](bec220b))
* give the installer a drag-to-install layout ([#176](#176)) ([4d42155](4d42155))
* lead setup to replace the macOS menu bar ([#198](#198)) ([4160f7f](4160f7f))
* list the apps using the most memory and CPU and quit them from the system monitor ([#234](#234)) ([1659bfb](1659bfb))
* make the installed package list easier to scan ([#228](#228)) ([36a3532](36a3532))
* morph between popups by default ([0371fc2](0371fc2))
* morph the open popup into the next one when switching widgets ([#204](#204)) ([e944864](e944864))
* notify about package updates in the bar ([#153](#153)) ([542c8dc](542c8dc))
* open and close a widget's popup from the command line ([#193](#193)) ([865686c](865686c))
* open the setup tour with an intro that turns into your bar ([f4cdfc5](f4cdfc5))
* put new bars on the top edge and offer to hide the menu bar ([4be3235](4be3235))
* redesign Settings with per-screen bars and themes ([15ae182](15ae182))
* refresh the app icon ([ed5070e](ed5070e))
* reorder bar widgets like the Dock ([#167](#167)) ([8fa078e](8fa078e))
* reveal hover controls smoothly beside widgets ([7fe3c45](7fe3c45))
* save the current look as a theme ([aef6cdc](aef6cdc))
* ship ten more themes with distinct looks ([#232](#232)) ([8cc1e24](8cc1e24))
* show macOS Spaces in workspace widgets without a tiling window manager ([fbc5746](fbc5746))
* show previews throughout the package list ([#152](#152)) ([103297a](103297a))
* show Store packages with updates first, then installed ones, then the rest ([14d4441](14d4441)), closes [#242](#242)
* show the battery's charge, power and health in its icon, with the percentage in a tooltip ([fa990a7](fa990a7)), closes [#237](#237)
* show the Store as a grid of package cards ([#236](#236)) ([0c5c7ee](0c5c7ee))
* show the volume level in the Sound widget's speaker ([4ae9c82](4ae9c82))
* show the volume only for a moment after it changes ([2fa27b2](2fa27b2))
* slide between app menus like the macOS menu bar ([#171](#171)) ([82b487b](82b487b))
* turn setup into a tour that changes the bar live ([24ba8c0](24ba8c0))
* update packages on the bar in one click ([7f0191d](7f0191d))
* use the menu bar's 13pt regular font by default ([#173](#173)) ([d3a2b96](d3a2b96))

### Bug Fixes

* correct eight bugs found in the app audit ([#240](#240)) ([da0666d](da0666d))
* draw a popup's own shadow without an outline around it ([a9eb602](a9eb602)), closes [#170](#170) [#180](#180)
* ease in and out of bar editing ([#168](#168)) ([86d6472](86d6472))
* keep number widths steady in default widget layouts ([#169](#169)) ([a2c34d4](a2c34d4))
* keep StableBar running when the setup tour ends ([#177](#177)) ([7528a25](7528a25))
* keep the Settings form the same height while saving or showing errors ([#165](#165)) ([0caff0c](0caff0c))
* keep the Settings layout steady while you change it ([#163](#163)) ([0a18461](0a18461))
* move popups smoothly and at once when morphing between them ([0538bba](0538bba))
* open tooltips at their size instead of zooming in ([431ee36](431ee36)), closes [#244](#244)
* remember where the Settings window was ([#166](#166)) ([f1f5281](f1f5281))
* save typed numbers in Settings without pressing Return ([#230](#230)) ([d37bfd2](d37bfd2))
* show a Dock icon while Settings is open ([#200](#200)) ([bee1d3f](bee1d3f))
* show hover highlights at once and fade them out quickly ([#172](#172)) ([d92a292](d92a292))
* show hover, cursor and haptic feedback while editing the bar ([#175](#175)) ([7ec767d](7ec767d))
* show only the macOS prompt when asking for Accessibility ([#197](#197)) ([607958a](607958a))

### Performance Improvements

* keep Settings responsive while changing the bar ([#161](#161)) ([39035a7](39035a7))
* keep the bar smooth while reading app menus and scrolling text ([#174](#174)) ([22b4972](22b4972))
* reduce CPU use while text scrolls ([#246](#246)) ([e10a962](e10a962))
* update the bar after a pause while typing in the inspector ([#164](#164)) ([215c051](215c051))
@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.

1 participant