Repository navigation
Let bar icons give a little under the pointer - #16503
Merged
Merged
Conversation
Bar icons had no press state at all. Held down, a widget's label or glyph now scales to 0.9 over 160ms on the strong ease-out and springs back the same way. Only the mark shrinks, never the button, so the hit area and the bar's layout stay put. A bar glyph is small enough that a panel button's 0.97 wouldn't show. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BarIconButton draws its icon in its own content item and turns WidgetButton's label off, so the press scale never reached the icons most of the bar is made of: the panels, indicators and tray. The content item now takes it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each bar slot lays a MouseArea over its widget for dragging, and that area takes the press, so the widget's own MouseArea never reported itself pressed and the press feedback never showed. The slot now marks the button under the pointer as held from press to release, cancel, or the start of a drag, and the press scale follows that too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a panel open, its full-screen overlay takes clicks on the bar and forwards them, so clicking an icon to close its panel, or to switch to another, showed no press. The overlay now marks the bar button under the pointer as held until release, as the bar's own press handler does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds press feedback to bar buttons without shrinking their hit areas.
Reviews (1) · Last reviewed commit: "Press bar icons through an open panel's ..." · Reviewed by Greptile |
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.
Press feedback for the bar's icons, to match the panel buttons from #16484. While a bar widget is held down, its icon or label scales to 0.9 over 160ms on
Style.easeOutand springs back on release.WidgetButton's label and glyph,BarIconButton's content), never the button. The hit area and the bar's layout stay put, so there's no lost-click-at-the-edge problem. A bar glyph is small enough that a panel button's 0.97 wouldn't show.MouseAreaover the widget for drag-to-reorder, and that area takes the press, so the widget's ownMouseAreanever reported itself pressed. The slot now marks the button under the pointer asheldfrom press until release, cancel, or the start of a drag.Style.duration(), so turning animations off keeps it still.Tried by hand on the author's desktop: opening, closing and switching panels from the bar. bar, bar-icon-geometry, bar-click-clipping, bar-drag, bar-widget-contract, keyboard-panel-lazy, clock and motion tests pass.
🤖 Generated with Claude Code