Files
craft-libs/crates/behavior/src
David MannandClaude Opus 5.5 5b190db66a Lasso cursors: an arrow on the hotspot with the tool icon beside it (photocraft#16671)
The Lasso, Polygonal Lasso and Magnetic Lasso showed only their icon, with
the icon box's empty top-left corner on the pointer, so the outline started
at a blank spot beside the lasso. They now show the solid arrow with its tip
on the pointer and the tool's icon below right of it, as the reference
application does and as the Paint Bucket and Ruler pointers already do.

PaintedCursor::PointerTool gains an optional badge, drawn at the icon's lower
right, so the add / subtract / intersect mark stays; pointer_tool_badged
builds it. pointer_tool keeps its signature.

Tests: the three lassos show the arrow with their icon and the operation's
badge (fails on next: the lasso returned PaintedCursor::Tool); a badged arrow
pointer keeps ink on its hotspot at 1x, 1.25x and 2x with the badge at the
icon's lower right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:35:25 +01:00
..
2026-11-18 06:05:43 -05:00