Skip to content

A bar an earlier setup put below the menu bar stays partly under it after updating #474

Closed

Description

@M4n0x

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

  1. Keep Automatically hide and show the menu bar off.
  2. Use a configuration with "bar": {"offset": 22}, as an earlier setup wrote it.
  3. Start a build of main with 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. BarStore writes it only for a new configuration (Sources/StableBar/BarStore.swift, first launch).
  • SetupSession.placement already treats an offset equal to earlierBelowMenuBarOffset as Below menu bar (Sources/StableBar/SetupWindow.swift), so the old value is recognised but never rewritten.
  • docs/getting-started.md says existing configurations retain their position.
  • migrateEarlierColors and migrateStarterAppleLogo (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

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 8, 2026
  2. stablebar-releases commented on Nov 10, 2026

    @stablebar-releases

    🎉 This issue has been resolved 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions