Repository navigation
feat: open the Menu bar items row on hover - #321
Merged
Merged
Conversation
The Menu bar items widget now lists the menu bar's items once the pointer rests on it for the hover delay, and keeps them open like a popup with openOnHover. Set openOnHover to false, or turn off Open on hover in the widget's Behavior settings, to open the row on click as before. Hovering doesn't ask for Accessibility access; a click still does. Fixes #320
This was referenced Oct 26, 2026
|
🎉 This PR is included in version 0.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
The Menu bar items widget lists the items of the hidden macOS menu bar only after a click, so reaching a status item takes two clicks. The menu bar it stands in for opens as soon as the pointer reaches it. Fixes #320.
Changes
bar.hoverDelay, 400 ms by default), the row opens. It stays open while the pointer is over the widget or the row and closes once it leaves both, as popups withpopup.openOnHoverdo. Clicking the widget keeps the row open until you click elsewhere or click the widget again; before, a click on an open row always closed it."openOnHover": falseon the widget, or Open on hover off in Settings → Bar → Behavior, brings back click to open and click to close. The key is on the widget, like App menus'expandOnHover, because settingpopupon this widget replaces its row. Reset in Settings clears it.menuBarItemsPopup(requestingAccess:)skips the Accessibility request when the row opens on hover, so passing over the widget never brings up the prompt or System Settings. A click still asks.WidgetPopup.hovernow awaits itsshowinside the hover task, so leaving the widget, or a click that opens the row first, cancels a read in progress and the row doesn't open after the pointer has gone.WidgetPopup.toggleIfOpenholds whattoggledid for a popup already open under its widget: keep one opened on hover, close one opened by a click. The widget calls it before reading the row, so it doesn't read the items just to close it.stablebar.schema.json(openOnHover), Settings (Behavior toggle, Reset), and the guide (docs/widgets.md: the widget table and Menu bar items). Includes, templates, profiles and overrides carry the key like any widget property, and--setneeds no change. No example uses this widget.Testing
openOnHoverdefaults to true,falseis kept), a hover whose popup is read first opens only if the pointer stays, a click keeps a hover-opened popup and closes a clicked one, and Reset clearsopenOnHover. Each failed before the change.swift teston this branch rebased onmain: 294 XCTest and 459 Swift Testing tests pass.main) and after. The new switch is on; offscreen it's drawn in an inactive window's grey.WidgetPopupcalls as popups that open on hover.git diff --checkand commitlint pass.Merging
A merge commit or rebase merge, which keeps the one commit. As a
feat, it makes a minor release.Claude Opus 5.5 via Claude Code