Main moved the canvas cursors to craft's tool host and deleted canvas/cursors.rs and
tool_feedback::badge. The cursor now comes from RetouchTool::cursor through
cursor_policy::object_selection_cursor: the dotted-rectangle crosshair, no badge for
Shift, Alt or Shift+Alt, the options bar's mode still badged, Precise / Caps Lock the
plain crosshair. Tests rewritten for the tool-host cursor.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Pencil's bar moved into craft-libs' PaintBar. The Smoothing gear and the
Angle field are ported there (storytold/craft-libs#4340); here the Pencil now
shows PaintBar's range alert like the Eraser (#11965), and the tests move to
the new bar.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port the Edit > Presets tests to main's menu API (menu_rows, base_rows,
control::Reply) and recount the parity and scorecard totals.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main moved Perspective Crop onto the craft framework and its keys into
shortcut_dispatch::run_fired, so the pending-quad rule moves there: a
finished quad holds Undo's key and the default tool letters. The tests
follow main's whole-app harness.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The New Layer dialog's Opacity row is now a whole-percent range row with
the framework's popup slider: an arrow right of the field opens a
horizontal 0-100 % slider that sets the field while dragging, and a click
outside closes it. The arrow is no Tab stop. New Group keeps its plain
field (not measured).
The Paint Bucket has no Flow, so its Shift+digits now set Opacity as
the plain digits do: Shift+3 is 30 %, Shift+0 100 %, and two fast
Shift digits a two-digit value. The Gradient's Shift digits (not
measured) and the tools with a Flow keep their behaviour.
Main's dialog is craft-libs' shared one; craft-libs#4263 gave it
Options::undo = UndoButtons::Toggle, which PhotoCraft now turns on. The test
records a key over Copy's in the detail pane, then steps it with the one
button: Undo gives the key back and the button reads Redo, Redo puts it back.
Reset Tool on the Eraser resets the tip (13 px, hardness 100 %,
spacing 25 %) but leaves Pressure for Size and Pressure for Opacity as
they were. Other tools' Reset Tool and Reset All Tools are unchanged.
The two existing tests that expected the Eraser's toggles cleared by
Reset Tool now expect them kept.
snap_mode gives the Eraser, in all three modes, the Brush's axis lock
(#11889): the axis that dominates the first movement is kept, and an
exact 45-degree Shift+drag erases only its start. The other painting
tools keep the 45-degree snap.
Main moved the tool's press and drag handling into craft-libs, so the
app-side snap_start is gone. storytold/craft-libs#4274 put the rule in
the framework's PerspectiveCropTool, which snaps through the canvas's
Snap the app already gives. Pin craft-libs at its current main, which
carries it, and port the tests to the new tool: a drag from beyond a
corner starts at it (also while dragging), one near an edge starts on
it, one inside or outside on one axis stays, Snap or Document Bounds
off changes nothing, and clicked corners stay put.
Co-Authored-By: Claude Opus 5.5 <[email protected]>