Repository navigation
bar: let widgets set an overflow priority - #4060
Merged
Merged
Conversation
Auto widgets with a lower priority move into overflow first and return last. Equal priorities keep the current order, nearest the overflow button first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
Member
|
Good idea, thanks for the support! |
dux-ci Bot
pushed a commit
that referenced
this pull request
Nov 1, 2026
Port 2.0 (cherry picked from commit 5c51235)
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.
Description
Adds a per-widget Overflow priority (-10 to 10, default 0) to the bar widget settings, shown while a widget's placement is Auto. When a bar runs out of space, auto widgets with a lower priority move into overflow first, and when space returns, higher-priority widgets come back first. Equal priorities keep today's order (nearest the overflow button first), so existing bars behave exactly as before.
Priority is compared across colliding sections too, so a low-priority widget on one side yields before a higher-priority one on the other.
The value is stored as
overflowPriorityon the widget entry and omitted when it is 0.Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsTwo new cases in
tests/bar-overflow.test.mjsfail without the change; the JS suite passes (403 tests). The changed QML files lint clean withqmllintand matchqmlformat, but I did not run the fullmake lint-qml, which needs a running shell for its VFS config.🤖 Generated with Claude Code