Repository navigation
feat: overflow widgets at the notch into a popup of the widgets themselves - #316
Merged
Merged
Conversation
Seb-GRAF
force-pushed
the
feat/notch-overflow
branch
from
October 24, 2026 16:11
868a125 to
628a5a7
Compare
Seb-GRAF
force-pushed
the
feat/notch-overflow
branch
from
October 24, 2026 19:11
bc3b16f to
008bd1a
Compare
|
🎉 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
Fixes #312. Fixes #313.
On a notched bar, overflow ignored the notch. Widgets left in configuration order, so on the right the clock usually went first. One More widgets button sat at the far right for both sides, and it opened a native menu of text titles. App menus that expand on hover could also move themselves into that menu when hovered, which put their menus out of reach.
Changes
WidgetPopup.showRow), aligned with the app name. Clicking a title opens its menu instore.innerPopupas a child of the row, like Menu bar items, and moving across the titles switches menus. Choosing an item or clicking elsewhere closes both.AdaptiveBarPlannerfits each side of the notch on its own. Among equal priorities, the left side gives up its rightmost widgets and the right side its leftmost, and each side gets its own button beside its widget nearest the notch (at the notch when the whole side is hidden). A side reserves room only for its own button. Displays without a notch keep one button at the right end and the configuration order.WidgetPopup.showWidgets) sized to its content like a tooltip and kept open like a clicked popup. It draws the hidden units withBarUnitView. Inside it, a widget's popup or app menu opens under the button and replaces the list. App menus show all their titles there, and hover expansion stays off so the bar doesn't react to it. The popup closes when the set of hidden widgets changes. This replaces the native menu and its special cases for workspaces, app menus, Control Center and menu bar items, which now work as they do on the bar.menuBarItemswidget now showssquare.grid.2x2instead of an ellipsis, so it no longer looks like the More widgets button.--popup IDfor a hidden widget opens under the button on its side.--popup, and theopenstate.Known limits, left for follow-ups:
whenVisiblestay suspended for widgets in the popup, as the guide already says for overflowed widgets, so they show their last value.Testing
swift test: everything passes except 5 cases inReleaseTests(unchangedAppRejects…), which fail the same way onmainon this Mac.notchedSidesOverflowTheWidgetsNextToTheNotchIntoAButtonBesideTheRest.hoverGrowthTakesOnlyFreeRoomAndNeverHidesOrMovesOtherWidgets.nativeConstrainedWorkspaceClipsItsDecorationAndScrollingRemovesOffscreenSelectionsized its 80 pt bar around the fixed 30 pt button. With no widget padding in that test, the themed button measures 14 pt, so the bar is now 70 pt to keep the workspaces narrower than one cell.mainand from this branch, and the popup's content with the popup's style. Before, the right side drops the network, battery and clock and the only button is at the far right; after, each side drops the widgets next to the notch into a button there. Screenshots to follow.Merging
Merge or rebase merge, to keep both the
fix:and thefeat:commit in the changelog.Claude Opus 5.5 via Claude Code in T3 Code.