Repository navigation
Draw tab: pen split buttons with thickness and colour menus - #1792
Closed
alosslessdev wants to merge 1 commit into
Closed
alosslessdev wants to merge 1 commit into
alosslessdev wants to merge 1 commit into
Conversation
This was referenced Oct 17, 2026
Contributor
Author
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.
Fixes #1785.
Each Draw-tab pen is now a split button: the body selects the pen, the arrow opens Excel's pen menu — thickness choices and the colour palette — wired to the existing
draw.penparams.What changed
pen_button(crates/ui-egui/src/ribbon.rs): a large split control laid out likebig_button, with the body and the chevron as separate click targets (stable ids per pen).draw.pen {on: true, color, width}, so the selection is an ordinary command, reachable from the control channel as well.Cut from
main, independent of #1767/#1187; the editable pen gallery in #1187 (add/remove pens, effects) remains its own work.Verification
cargo fmt --all -- --checkcargo clippy -p gridcraft-ui-egui --all-targets -- -D warningscargo test -p gridcraft-ui-egui(full crate suite)docs/ui-parity.mdrevision history updated;contributors/people.tomlentry perAGENTS.md