Skip to content

fix: follow Reduce Motion in setup's steps, theme row and tiles - #549

Merged
Seb-GRAF merged 1 commit into
mainfrom
fix/465-setup-reduce-motion
Nov 11, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
fix/465-setup-reduce-motion

Conversation

@M4n0x

@M4n0x M4n0x commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Problem

With Reduce Motion on, setup already skipped the intro and stopped its pointer bouncing, but each step still blurred and slid in and out, Continue and Back animated the change, the theme row scrolled to the chosen theme, and tiles grew on hover.

Fixes #465

Changes

  • SetupMotion (new, SetupMotion.swift) is the one place that decides setup's motion from SwiftUI's live accessibilityReduceMotion, so a change in System Settings applies without reopening setup.
  • Under Reduce Motion:
    • each step fades out, then the next fades in (0.2 s each). The new step only appears after the old one has left, so it fades in already in its final place instead of jumping when the old step's layout space goes away;
    • the theme row jumps to the chosen theme;
    • tiles and buttons keep their highlight and pressed states without scaling;
    • progress dots, permission rows and controls inside a step (segmented controls, for example) change without movement;
    • the completion window opens and closes without the alert-panel zoom, following the setting live.
  • With Reduce Motion off, nothing changes: the same blur and slide, delays and spring timings as before. fullMotionKeepsTheStaggeredBlurAndSlide pins them.
  • The intro is unchanged. It still doesn't play by itself under Reduce Motion, and Watch the intro still plays it for anyone who asks (fix: ask where the bar goes first, and for permissions after the choices #492). The tour still shows the intro's last frame, glow line included.
  • docs/getting-started.md describes the behaviour.

Testing

  • SetupMotionTests (4 tests, 12 cases): the step transition, animations, scaling and completion-window behaviour for both settings, and that the full-motion timings match main.
  • swift test --filter 'SetupMotion|Setup|SceneRenderer|ArchitectureRules': 28 XCTest and 50 Swift Testing tests pass, including setupSceneDrawsTheSameStepHoweverLongItSettles. scripts/check.sh --quick and commitlint pass.
  • The setup-placement and setup-look scenes, rendered offscreen with Reduce Motion forced on, are byte-identical to main (the glow line under the bar is still there).

Not checked in the running app, and there's no recording: a still image can't show motion, and recording would mean turning on Reduce Motion for the whole Mac. To check by hand, turn on System Settings → Accessibility → Display → Reduce motion, open Getting Started…, then use Continue and Back, ← and → on the themes, hover the tiles, and replay Watch the intro.

Merging

One commit; any merge method works. #464 (keyboard and VoiceOver in setup) also touches SetupTile, so whichever merges later needs a small rebase.

GPT-6.1-sol via Codex, reviewed by Claude Opus 5.5 via Claude Code

Resolve setup motion from the live accessibility setting so page changes,
theme selection, controls and the completion window avoid movement when requested.
Fade each old step out before revealing its replacement, keeping layout changes hidden.
Preserve the opt-in intro replay and its paused final frame.

Keep the existing motion when Reduce Motion is off and cover both policies with helper tests.

Fixes #465
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner November 11, 2026 00:39
@M4n0x M4n0x self-assigned this Nov 11, 2026
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Setup now applies motion-aware transitions, animations, movement, and scaling to the setup tour and window. The setup card reports the current Reduce Motion setting and changes to that setting while open.

Changes: Setup Reduce Motion

Layer / File(s) Summary
Motion policies and tests
Sources/StableBar/SetupMotion.swift, Tests/StableBarTests/SetupMotionTests.swift
SetupMotion defines reduced-motion and full-motion policies for transitions, animations, movement, scaling, transactions, and window behavior. Tests cover both settings.
Setup tour motion behavior
Sources/StableBar/SetupTour.swift
The setup tour and its controls use motion-aware effects for step changes, theme scrolling, indicators, hover, selection, and press feedback.
Window setting updates
Sources/StableBar/SetupWindow.swift, docs/getting-started.md
The setup card reports the initial Reduce Motion value and changes while open. The window updates its animation behavior, and the documentation describes the setting’s effects.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 9c3f0

No concrete issue currently prevents merging the setup Reduce Motion change.

Pre-merge checks: Passed 3

Check name Status Explanation
Description check Passed The description includes the required Problem, Changes, Testing, and Merging sections. It explains the motivation, scope, reported test results, untested checks, merge approach, and ends with the mode…
Linked Issues check Passed Issue #465 requires setup steps to crossfade or change without animation, the theme row to jump to the selected theme, and tiles not to scale when Reduce Motion is on. The PR summary reports opacity t…
Out of Scope Changes check Passed The reported changes remain within setup's Reduce Motion behavior. Motion-aware progress indicators, permission rows, controls, and completion-window behavior support the same accessibility objective.…
Full details: Description check

Explanation

The description includes the required Problem, Changes, Testing, and Merging sections. It explains the motivation, scope, reported test results, untested checks, merge approach, and ends with the model and harness information.

Full details: Linked Issues check

Explanation

Issue #465 requires setup steps to crossfade or change without animation, the theme row to jump to the selected theme, and tiles not to scale when Reduce Motion is on. The PR summary reports opacity transitions without movement, non-animated theme selection, and suppressed tile scaling. It also reports tests for reduced-motion behavior and retention of full-motion behavior.

Full details: Out of Scope Changes check

Explanation

The reported changes remain within setup's Reduce Motion behavior. Motion-aware progress indicators, permission rows, controls, and completion-window behavior support the same accessibility objective. Tests and documentation support the implementation. The PR reports no change to the intro.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 67753e5 and 9c3f0c4.

Files selected for processing: 5

  • Sources/StableBar/SetupMotion.swift
  • Sources/StableBar/SetupTour.swift
  • Sources/StableBar/SetupWindow.swift
  • Tests/StableBarTests/SetupMotionTests.swift
  • docs/getting-started.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Before and after

main at 67753e5 → this pull request at 9c3f0c4 · 60 screens drawn in one CI job · 0 changed

60 unchanged screens

docs/essentials-clock-settings-dark, docs/essentials-clock-settings-light, docs/essentials-dark, docs/essentials-light, docs/essentials-settings-dark, docs/essentials-settings-light, docs/hero-dark, docs/hero-light, docs/popups-dark, docs/popups-light, docs/settings-dark, docs/settings-light, docs/themes-dark, docs/themes-light, scenes/app-menu-popup-dark, scenes/app-menu-popup-light, scenes/apple-menu-settings-dark, scenes/apple-menu-settings-light, scenes/crowded-edit-bar-dark, scenes/crowded-edit-bar-light, scenes/dock-badges-bar-dark, scenes/dock-badges-bar-light, scenes/essentials-clock-popup-dark, scenes/essentials-clock-popup-light, scenes/gruvbox-bar-dark, scenes/gruvbox-bar-light, scenes/horizontal-list-popup-dark, scenes/horizontal-list-popup-light, scenes/notch-flare-bar-dark, scenes/notch-flare-bar-light, scenes/settings-bar-dark, scenes/settings-bar-light, scenes/settings-bar-placement-dark, scenes/settings-bar-placement-light, scenes/settings-general-dark, scenes/settings-general-light, scenes/settings-general-spaces-dark, scenes/settings-general-spaces-light, scenes/settings-theme-dark, scenes/settings-theme-light, scenes/settings-uninstall-dark, scenes/settings-uninstall-failed-dark, scenes/settings-uninstall-failed-light, scenes/settings-uninstall-light, scenes/settings-widget-backgrounds-dark, scenes/settings-widget-backgrounds-light, scenes/setup-look-below-menu-bar-dark, scenes/setup-look-dark, scenes/setup-permissions-dark, scenes/setup-placement-dark, scenes/setup-touches-dark, scenes/setup-try-dark, scenes/slider-end-stop-popup-dark, scenes/slider-end-stop-popup-light, scenes/starter-bar-dark, scenes/starter-bar-light, scenes/starter-edit-bar-dark, scenes/starter-edit-bar-light, scenes/update-popup-dark, scenes/update-popup-light

Visual review: 60 screens, none changed.

@Seb-GRAF
Seb-GRAF merged commit a05ed10 into main Nov 11, 2026
15 checks passed
@Seb-GRAF
Seb-GRAF deleted the fix/465-setup-reduce-motion branch November 11, 2026 06:31
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.13.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.

Setup's page transitions and theme row ignore Reduce Motion

2 participants