Skip to content

adding-macos-animation-style - #158

Closed
mr-steveryan wants to merge 1 commit into
fif7y:rosterfrom
mr-steveryan:adding-macos-animation-style
Closed

mr-steveryan wants to merge 1 commit into
fif7y:rosterfrom
mr-steveryan:adding-macos-animation-style

Conversation

@mr-steveryan

@mr-steveryan mr-steveryan commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Adds a fourth animation style, macOS, that keeps macOS's own slide even with Screen Recording granted.

Related to #154 and #157. This doesn't fix either; it gives people who turned on Screen Recording for other features, like Live Activities, a way to get the native animation back.

Before / After

Before: granting Screen Recording (which Live Activities and panel pictures need) means every reveal and conceal plays one of Dimble's picture-based styles. The only way back to macOS's own slide is to revoke Screen Recording.

After: Settings › Behavior › Animation has a fourth card, macOS, after Instant, Smooth and Fade. With it, the ordinary reveal and conceal put no pictures over the bar, so macOS's own slide plays. That's the same path Dimble already takes without Screen Recording. Live Activities and panel pictures keep working.

The style is also in the status item's Animation submen the settings search finds the Animation card for "macos".

Decisions I made

  • D1, name: the enum case is RevealAnimation.system (raw value "system"), shown as "macOS" and listed last everywhere. "macOS" is added to gen-xcstrings.py with the same value in every language, like the other brand names.
  • D2, scope: only the ordinary (non-anchored) reveal and conceal change. They take no cover, no finished picture and no strip, and awaitCoverRetake doesn't wait. AnimationRecipe.recipe(for: .system) returns Smooth's recipe, so anchored mode, held-bar covers, live mode and the picture pass work as they do under Smooth. No new Move case.
  • D3, Settings without Screen Recording: without the grant every style already falls back to macOS's slide, so the disabled Animation card now shows macOS selected. This is display only: the saved style isn't changed and comes back once Screen Recording is granted.
  • D4, default unchanged: the default stays Smooth. No migration is needed: an unknown raw value ("system" read by an older build) decodes to Smooth through the existing tolerant decoding. A new test covers this.
  • D5, no revealed-strip picture with macOS: the picture of the revealed bar (revealedStripSnapshot) is only read by the reveal's finished picture, which macOS never plays. With macOS it's no longer taken after a reveal (scheduleRevealedStripPrecapture), during a conceal (the Sometime, there is a delay in hiding/showing icons #35 fallback) or at launch (takeBootPicture, which still seeds the strip). Taking it lit the screen-capture indicator on every reveal for nothing.
  • D6, the empty-bar picture stays: the picture of the empty bar taken after a conceal (scheduleRevealCoverPrecapture) is kept with macOS, because held bars, the picture pass, the Live Activity re-hide and the clock-click cover read it. So with macOS the indicator still shows briefly after each conceal, but not after reveals.

Questions for you

  • Q1, Settings without Screen Recording: should the macOS card also be clickable without the grant (see D3)?
  • Q2, panel motion: the glass panel has no macOS-native animation, so .system folds like Smooth (including the Reduce Motion rule) as a placeholder. What should the panel do with this style?
  • Q3, preview card: the macOS card's mock-bar preview plays Smooth's motion as a placeholder; there's no new artwork. What should it show?
  • Q4, the empty-bar picture with macOS: would you want it skipped for the macOS style when nothing can use it (one display, no panel), with the Live Activity re-hide and the clock-click cover capturing on demand instead (see D6)?

The .smooth doc comment is also corrected. It said "the agent's own slide-in (the OS default)", which is only true without Screen Recording.

This is based on roster, not main, because #154's commits (54efc67, 8e3b842) change the same reveal and cover code.

Screen Recording

dimble-macos-animation-test

Verified

  • swift test passes in PelmetCore (696 tests) and PelmetEngine (60 tests). The app's xcodebuild test passes (124 tests), using local ad-hoc signing.
  • By hand on a real menu bar, macOS 27.2.1 (26B131), one display, with a renamed dev build (app.fif7y.Pelmet-dev) so it doesn't share settings or permissions with the release app:
    • With macOS, reveals log anim=system, cover=false, finished=false and conceals cover=false, strip=false. Switching back to Smooth logs cover=true, finished=true and cover=true, strip=true again.
    • With macOS, launching logs strip: seeded at boot and no finished: boot picture taken; with Smooth the boot picture is taken again.
    • With Screen Recording off (launched with -pelmet.debug.withoutScreenRecording YES), the Animation card shows macOS selected. With the real grant back, the saved style shows again.
    • A Live Activity (a Shortcut) behaves the same with macOS as with Smooth: live mode enters, mirrors the pill and exits when the Shortcut ends.

@mr-steveryan
mr-steveryan marked this pull request as ready for review November 17, 2026 17:49
Copilot AI balanced review requested due to automatic review settings November 17, 2026 17:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@mr-steveryan
mr-steveryan force-pushed the adding-macos-animation-style branch 2 times, most recently from 4fd0300 to 60c54bc Compare November 18, 2026 03:31
…rding on

A fourth style next to Instant, Smooth and Fade. With it, the ordinary
reveal and conceal put no pictures over the bar, so macOS's own slide
plays, as it does without Screen Recording. Anchored mode, held bars and
live mode still use Smooth's pictures, so Live Activities keep working.
The panel and the Settings preview move like Smooth for now.

With macOS, the picture of the revealed bar is no longer taken after a
reveal, during a conceal or at launch: only the other styles play it,
and taking it lit the screen-capture indicator on every reveal. The
launch still records where the hidden icons sit. The empty-bar picture
after a conceal stays, since held bars and the picture pass use it.

Without Screen Recording every style falls back to macOS's own slide, so
the disabled Animation card shows macOS picked. Display only: the saved
style is untouched and comes back once Screen Recording is granted.

Related to #154 and #157.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K2Tob8ntdHRKY4nmNpUHpK
@mr-steveryan
mr-steveryan force-pushed the adding-macos-animation-style branch from 60c54bc to cf6d06b Compare November 18, 2026 03:59
This was referenced Nov 18, 2026
@fif7y

fif7y commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Hey @mr-steveryan, thanks for this one, and good catch on the .smooth comment, it still describes macOS's own slide.

I'm going to pass on the macOS style though. We're still refining the animations, and it doesn't add enough over Smooth to be worth a fourth option.

Held bars and live mode would still play Smooth, and the preview card would look the same, so it'd be hard to tell the two apart.

I'll close this one, but thanks again for digging into the transitions!

@fif7y fif7y closed this Nov 18, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026
@mr-steveryan
mr-steveryan deleted the adding-macos-animation-style branch November 18, 2026 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants