Repository navigation
Description
What happens
#468 fixed Below menu bar for new placements with bar.belowMenuBar, but existing configurations aren't migrated. An earlier setup's Below menu bar, or a first launch while the menu bar was visible, wrote bar.offset as max(NSStatusBar.system.thickness, NSScreen.main.safeAreaInsets.top): 22 pt, or the main display's notch height. After updating, that bar stays at that offset, so it is still partly under the menu bar described in #451 (30 pt on an external display and 33 pt on a notched one on macOS 27.2), and one offset still serves every display.
The ways out are hard to find:
- Setup shows the placement as Below menu bar already. Only clicking that tile again rewrites it; Finish setup alone saves nothing for placement.
- Turning on Below the menu bar in Settings → Bar → Placement keeps the 22 pt offset, which now counts from the bottom of the menu bar, so the bar leaves a 22 pt gap until the offset is set to 0.
Steps to reproduce
- Keep Automatically hide and show the menu bar off.
- Use a configuration with
"bar": {"offset": 22}, as an earlier setup wrote it. - Start a build of
mainwith fix: keep a bar below the menu bar clear of it on every display #468 (ff1d0e9).
Expected
The bar starts right under each display's menu bar, as a new configuration does: the file holds "belowMenuBar": true, "offset": 0.
Environment
main at ff1d0e9, macOS 27.2.
Diagnosis
SetupPreferences.edits(in:)writes the new form only when a placement is chosen.BarStorewrites it only for a new configuration (Sources/StableBar/BarStore.swift, first launch).SetupSession.placementalready treats an offset equal toearlierBelowMenuBarOffsetas Below menu bar (Sources/StableBar/SetupWindow.swift), so the old value is recognised but never rewritten.docs/getting-started.mdsays existing configurations retain their position.migrateEarlierColorsandmigrateStarterAppleLogo(Sources/StableBar/ConfigurationEdits.swift) already rewrite values earlier versions wrote, once, at launch.
Proposal: a one-time migration at launch, while the menu bar shows, that turns a root bar.offset an earlier setup wrote (22 pt, or a connected display's notch height) into "belowMenuBar": true, "offset": 0, in the shared bar and in screen setups' own bars. Under a visible menu bar those offsets are already covered, so a hand-set value loses nothing. A build older than the migration reads the file through #337: it warns and ignores belowMenuBar.
Related
- A bar below the macOS menu bar sits partly under it, with one offset for every display #451 / fix: keep a bar below the menu bar clear of it on every display #468:
bar.belowMenuBar. Its description notes that existing configurations aren't migrated. - Setup's profile notice misses a profile that sets bar.belowMenuBar #471 / fix: name the profile that sets belowMenuBar in setup's profile notice #473: setup's profile notice and
belowMenuBar, a different follow-up. - A configuration saved by a newer build fails to load in older builds #223 / feat: load configurations written for a newer StableBar #337: configurations saved by a newer build.
Triaged by Claude Code (Claude Opus 5.5).
Activity
chore(release): 0.12.0 [skip ci]
stablebar-releases commentedon Nov 10, 2026
🎉 This issue has been resolved in version 0.12.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀