Repository navigation
Conversation
…width (storytold#1178) A frameless button gives a menu row no feedback under the pointer. The same flag drops the frame that carries `weak_bg_fill` and zeroes `style.spacing.button_padding`. The new `menu_row` helper paints the theme hover fill behind the label and restores the indent with a spacer atom. The cell context menu and the header menu now set one width for the popup and its rows. A narrower row left the highlight short of the menu's right edge. Fixes storytold#1178 Co-Authored-By: Claude Code <noreply@anthropic.com>
Contributor
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.
Closes #1178.
What changed
Button::frame(false)gives a menu row no feedback under the pointer. The same flag drops the frame that carriesweak_bg_filland zeroesstyle.spacing.button_padding. A row therefore showed no highlight, and its label touched the row edge.menu_rowincrates/ui-egui/src/widgets.rspaints the theme hover fill behind a frameless label and restores the indent with a spacer atom.Measurements
The release build at 1280x800, a pixel scale of 1.25:
Tests
crates/ui-egui/tests/context_menu_hover.rsopens the cell context menu, hovers a row and checks that the row paints the hover fill. A second test checks that the highlight clears when the pointer leaves.Gates: fmt, clippy -D warnings, the ui-egui suite, assets, layers, wasm.
🤖 Generated with Claude Code