feat(ui): paintbrush cursor while MATCHPROP is armed

MATCHPROP transfers properties from a source object onto others, so the CAD
crosshair gives way to a monochrome paintbrush whose tip sits on the pick
point - the AutoCAD feel for the same command.

The glyph borrows the crosshair's own colour (including a user-customised
one) and uses a single stroke weight plus one filled wedge, so it reads as
part of the CAD cursor family rather than clip-art. It is drawn instead of
the crosshair, never on top of it, and only while the command is armed.
This commit is contained in:
Carlos Quiroga committed 2026-10-13 20:32:25 -06:00
1 parent acb8c5ea54
commit 1b72115f50
3 files changed
+120

No files matched your search

+5
View File
@@ -959,6 +959,11 @@ bg={bg_ms:.1}ms n={view_count}"
}),
snap_color: self.snap_marker_color,
},
// MATCHPROP paints properties onto destinations; it gets the
// paintbrush cursor instead of the crosshair.
tab.active_cmd
.as_ref()
.is_some_and(|c| c.name() == "MATCHPROP"),
crate::ui::overlay::SelectionVisualOptions {
area: self.model_space.selection_area,
opacity: self.model_space.selection_opacity,