Repository navigation
feat: open Control Center and the macOS menu bar's items from the bar - #311
Merged
Merged
Conversation
This was referenced Oct 24, 2026
|
🎉 This PR is included in version 0.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Oct 27, 2026
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
With the macOS menu bar hidden, its items, such as Wi-Fi, Control Center and third-party icons, are out of reach until the pointer reaches the top edge, and then the whole menu bar slides in over StableBar. There was also no way to keep it from appearing at all.
Closes #83. Closes #310.
Changes
Control Center and Menu bar items widgets (first commit, #83). #83 proposed drawing live images of each item, which needs Screen Recording. These widgets need only Accessibility.
controlCenteris a button that opens macOS Control Center. It acts on mouse down and does nothing while Control Center's panel is open, so the click that closes the panel doesn't reopen it.menuBarItemsis an ellipsis that opens a row of icons, one for each item in the macOS menu bar, in menu bar order. Each icon is its app's icon, or an SF Symbol for Battery, Clock, Control Center and Spotlight, and shows the item's name on hover. StableBar reads the items through Accessibility (kAXExtrasMenuBarAttribute), from every running app in parallel with a 100 ms timeout, so a hung app can't hold up the row. StableBar's own item is left out, because reading it off the main thread crashes.WidgetPopup, as a second instance (BarStore.innerPopup), so they open, morph and close like the bar's popups. When a popup's anchor sits inside another popup, it attaches to that popup as a child window and records its anchor on the widget's presentation instead of replacing the bar's open popup.AXPress. StableBar sets the menu bar's alpha to 0 (CGSSetMenuBarInsetAndAlpha), reveals it on that display (SLSSetMenuBarVisibilityOverrideOnDisplay), presses the item, then lets the menu bar hide and restores the alpha once the item closes. Both are private window server calls.AXMenuchild counts as a submenu.Always hide (second commit, #310):
bar.hideMenuBar, under Settings → General → Native menu bar, keeps the menu bar's alpha at 0 while StableBar runs and sets it back to 1 on quit. It's off by default, so the menu bar still shows on hover.Both widgets are in Add widget, the schema, the Accessibility permission list and
docs/widgets.md. Always hide is in the schema, Settings search anddocs/getting-started.md.Testing
swift test:unchangedApp…release tests, and the failure comes from this Mac, not the branch: Homebrew's git 2.51.1 prints a diff header despitegit diff --quiet, soscripts/unchanged-app.shgets output it doesn't expect. This branch doesn't touch that script or its tests.WidgetPopup: opening, morphing between icons, closing, and Escape.Screenshots to follow.
Merging
Merge commit, so both features reach the changelog.
Claude Opus 5.5 via Claude Code (T3 Code)