Skip to content

fix: keep setup's buttons above a Dock at the bottom of the screen - #445

Merged
M4n0x merged 1 commit into
mainfrom
fix/444-setup-dock
Nov 7, 2026
Merged

M4n0x merged 1 commit into
mainfrom
fix/444-setup-dock

Conversation

@M4n0x

@M4n0x M4n0x commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Problem

When the Dock sits at the bottom of the screen and doesn't hide automatically, it covers the setup tour's buttons: Continue, Back, Skip setup, the step dots, and in the intro Get Started and Replace the menu bar. The tour hides the Dock with NSApp.presentationOptions = [.autoHideDock], which macOS applies only while StableBar is the active app. Focus moves to another app when:

  • setup opens up to 10 s after launch;
  • Allow… switches to System Settings;
  • the user clicks something else.

Fixes #444

Changes

  • SetupWindow.showTour measures the Dock's height at the bottom of the screen (visibleFrame.minY - frame.minY) before the Dock hides, and passes it to SetupTourView. The measurement is 0 when the Dock is on a side or another screen; when it hides automatically, it's only the few points macOS keeps for revealing it.
  • SetupTourView raises everything anchored to the bottom by that height: the intro's Get Started, Skip intro and menu bar question, the footer, and the dots. Each step's top padding is now 24% of the height above the Dock, so the content keeps its distance from the raised footer.
  • The Dock still hides while setup is the active app. Measuring it once, when setup opens, keeps the buttons in the same place whether the Dock shows or hides.

Testing

  • New setupKeepsItsButtonsAboveABottomDock covers a bottom Dock, an auto-hiding Dock, a Dock on the left, no Dock, and a screen whose origin isn't zero. It failed to build before the change. It and the other 23 setup tests pass (swift test --filter "[Ss]etup").
  • No scene draws setup, and a scene can't show the Dock. The images come from a temporary test, not committed: it drew SetupTourView offscreen at 1440 × 900 with a 76 pt stand-in Dock. All four steps fit at 1440 × 900, 1470 × 956 and 1728 × 1117. On the busiest step, about 40 pt stays free above Continue at 1440 × 900.
  • On this Mac, the Dock sits on the left and hides automatically: both screens report a bottom inset of 0, so the tour looks the same as before.
  • Not checked: a live run in a fresh account with the Dock showing, and the intro's buttons, which use the same offset.
Before After
Before: Continue and the dots under the Dock on the Widgets step After: Continue and the dots above the Dock on the Widgets step
Before: Back, Continue and Skip setup under the Dock on Finishing touches After: the footer above the Dock on Finishing touches

Merging

One commit: squash or merge commit both work.

Claude Opus 5.5 via Claude Code

The setup tour fills the screen and hides the Dock only while StableBar is the active app.
Whenever another app had focus, a Dock at the bottom covered Continue, Skip setup and the
step dots. The tour now measures the Dock before hiding it and lays out above it.

Fixes #444
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner November 7, 2026 13:08
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

SetupWindow now measures the screen’s bottom inset and passes it to SetupTourView. The tour uses the Dock height to adjust the positions of its controls and content.

Changes: Dock-aware setup tour

Layer / File(s) Summary
Measure and pass Dock height
Sources/StableBar/SetupWindow.swift, Tests/StableBarTests/WidgetTests.swift
SetupWindow calculates the bottom inset from the screen and visible frames, then passes the value to SetupTourView. Tests cover bottom insets and cases that return zero.
Adjust tour layout
Sources/StableBar/SetupTour.swift
SetupTourView accepts the Dock height. It adjusts the footer, dots, intro buttons, menu-bar choices, and top padding using that value.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to af532

The change keeps the setup tour's buttons above a visible bottom Dock. It should fix the reported problem in the common case. The remaining edge cases, such as the Dock moving during setup, are narrow and do not block merging.

Pre-merge checks: Passed 3

Check name Status Explanation
Description check Passed The description covers the problem, changes, testing, merge method, and agent attribution. It links the issue and identifies checks that were not performed.
Linked Issues check Passed [#444] SetupWindow measures the bottom screen inset before hiding the Dock. SetupTourView uses the inset to raise the intro controls, footer, and step dots, and adjusts content spacing. The added test…
Out of Scope Changes check Passed [#444] The Dock measurement, layout adjustments, and inset test support the setup visibility fix. No unrelated changes are identified in the supplied whole-PR summary.
Full details: Linked Issues check

Explanation

[#444] SetupWindow measures the bottom screen inset before hiding the Dock. SetupTourView uses the inset to raise the intro controls, footer, and step dots, and adjusts content spacing. The added test covers bottom, auto-hidden, side, and absent Docks and a nonzero screen origin. The reported renders show the adjusted step layout; the intro and a live Dock were not checked.

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 dc5a611 and af532eb.

Files selected for processing: 3

  • Sources/StableBar/SetupTour.swift
  • Sources/StableBar/SetupWindow.swift
  • Tests/StableBarTests/WidgetTests.swift

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

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Before and after

main at dc5a611 → this pull request at af532eb · 48 screens drawn in one CI job · 4 changed

Screen Change Where (image pixels)
scenes/settings-general-dark 3,435 pixels 621,2326 · 175×28
scenes/settings-general-light 3,313 pixels 621,2327 · 174×27
scenes/settings-general-spaces-dark 3,435 pixels 637,2248 · 175×28
scenes/settings-general-spaces-light 3,313 pixels 637,2249 · 174×27

scenes/settings-general-dark

Before After
Before After

Difference, changed pixels in red:

Difference

scenes/settings-general-light

Before After
Before After

Difference, changed pixels in red:

Difference

scenes/settings-general-spaces-dark

Before After
Before After

Difference, changed pixels in red:

Difference

scenes/settings-general-spaces-light

Before After
Before After

Difference, changed pixels in red:

Difference

44 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/settings-bar-dark, scenes/settings-bar-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/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: 4 changed screens approved.

@M4n0x M4n0x added the visual-ok A maintainer looked at the changed screens and approves them label Nov 7, 2026
@M4n0x
M4n0x merged commit 2784139 into main Nov 7, 2026
16 checks passed
@M4n0x
M4n0x deleted the fix/444-setup-dock branch November 7, 2026 13:38
stablebar-releases Bot pushed a commit that referenced this pull request Nov 10, 2026
## [0.12.0](v0.11.0...v0.12.0) (2026-11-10)

### Features

* ask for the permissions your bar needs before setup uses them ([#442](#442)) ([9494cc7](9494cc7)), closes [#441](#441)
* let a group's top corners curve outward into the top of the screen ([265eb90](265eb90))
* paint the notch black so screen shares and screenshots match the display ([c40dda3](c40dda3))
* set widget, popup and tooltip backgrounds separately ([7eaf5af](7eaf5af))
* show Rift workspaces in workspace widgets ([d0f6d4d](d0f6d4d))
* turn on Open at login when setup replaces the menu bar ([#507](#507)) ([d24abe1](d24abe1))

### Bug Fixes

* ask before Skip setup throws away the choices made so far ([#470](#470)) ([66f47ea](66f47ea)), closes [#454](#454)
* ask where the bar goes first, and for permissions after the choices ([#492](#492)) ([1f45416](1f45416)), closes [#450](#450)
* drop a window that left every workspace when clicking it fails ([ec45fcc](ec45fcc)), closes [#520](#520)
* drop stray focus rings and show popup focus in the theme's hover look ([61ea306](61ea306))
* fall back to macOS Spaces when no window manager is running ([#436](#436)) ([5cc4ef2](5cc4ef2)), closes [#435](#435) [#435](#435)
* give a bar below the menu bar what the menu bar doesn't show ([#469](#469)) ([1181904](1181904)), closes [#452](#452)
* hold Edit Bar in Place until setup is done ([7582976](7582976)), closes [#462](#462)
* keep a bar below the menu bar clear of it on every display ([#468](#468)) ([ff1d0e9](ff1d0e9)), closes [#451](#451)
* keep a cancelled hover from showing a tooltip or closing its popup late ([#483](#483)) ([93c44a1](93c44a1)), closes [#482](#482)
* keep a package library that outlives its bar from crashing the test run ([#481](#481)) ([5f4821d](5f4821d)), closes [#480](#480)
* keep a popup's focus when clicking inside it ([f5ecaec](f5ecaec))
* keep setup's buttons above a Dock at the bottom of the screen ([#445](#445)) ([2784139](2784139)), closes [#444](#444)
* keep setup's pointer below the bar when the menu bar shows ([#509](#509)) ([ef22935](ef22935))
* keep setup's steps, reminders and hints readable on short screens ([#476](#476)) ([940777d](940777d)), closes [#455](#455)
* keep the app menus on the menu bar's app while a background agent is in front ([#446](#446)) ([a900ef5](a900ef5)), closes [#443](#443)
* keep the app menus that fit beside the notch and put the rest behind » ([#477](#477)) ([8b09465](8b09465)), closes [#453](#453)
* keep the focus ring while editing the bar ([80195ff](80195ff))
* keep widgets beside the notch against it when More widgets shows its button ([d74b925](d74b925))
* leave Battery out of setup's presets on a Mac without a battery ([3db935d](3db935d)), closes [#456](#456)
* let Skip setup restore the menu bar when a change is still in flight ([#498](#498)) ([9fdf1ce](9fdf1ce)), closes [#497](#497)
* look up private macOS calls at runtime, so a missing one only turns its feature off ([#490](#490)) ([5f312fd](5f312fd))
* move a bar an earlier setup put below the menu bar under it ([#475](#475)) ([9cada9a](9cada9a)), closes [#468](#468) [#474](#474)
* name the profile that sets belowMenuBar in setup's profile notice ([#473](#473)) ([55aea3c](55aea3c)), closes [#471](#471)
* offer the Notch preset only when the bar replaces the menu bar ([#438](#438)) ([dc5a611](dc5a611)), closes [#437](#437)
* reject a negative group flare ([eae8615](eae8615))
* show workspace managers as segments in Settings again ([60e21a5](60e21a5))
* start a new bar with a clock in the Mac's date order and 12- or 24-hour time ([#501](#501)) ([ed119f7](ed119f7))
* stop reopening setup at every launch after Skip setup ([#472](#472)) ([a15e07a](a15e07a)), closes [#449](#449)
@stablebar-releases

Copy link
Copy Markdown

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

released visual-ok A maintainer looked at the changed screens and approves them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Dock covers setup's buttons when it sits at the bottom of the screen

1 participant