Clearing it on gained focus left a gap when focus arrived by keyboard
navigation; now any frame the field draws without focus clears it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main added Brush Tip Shape Angle/Roundness tests and doc rows at the same places as
this PR's Scatter header tests and rows; both sides are kept, and the doc status
lines name both changes.
Co-Authored-By: augrclk <augrclk@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An out-of-range edit cut off by hiding the options bar no longer shows its
alert later, when the field is entered and left again without a change.
The caption scrub test now starts at 90 and checks that it reaches 100.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The image outside a pending quad is covered by a grey shield at the
measured strength, painted as the canvas minus the convex quad and
following the quad while it is dragged. A quad that is not convex keeps
today's red outline without a shield.
Lock transparent pixels no longer refuses the Background Eraser, so the
UI test for a refused stroke locks the image pixels instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A scrub of the Tolerance caption while the field has the keyboard stops at
the range's end without the alert. Strokes send the Tolerance as the field
stores it, so a restored fraction erases the same whether or not the
options bar has drawn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The review on #9306 asked to build the live preview on main's Path
Selection dragging instead of a separate handler. A drag now draws the work
path, or the saved path selected in the Paths panel, where its release will
put it: the same whole-pixel offset and click threshold as
path_selection_finish (path_selection_offset, shared by both), and only the
selected components when some but not all are (path_components::
moved_selected, through the engine's own move_anchors). The document still
changes only on release, as one History step. A shape layer's or vector
mask's outline is not previewed: their pixels move only on release. A stale
drag (VectorGestureOwner) shows nothing, as its release moves nothing.
Co-Authored-By: FartmanAndBurps <FartmanAndBurps@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An entry left uncommitted by a tool switch kept its flag, so focusing the
field again and pressing Enter without typing showed the alert.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The menu item with no path asks with File > Open's dialog (multi-select) and opens each chosen file as its own document; failures are reported as File > Open reports them.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Adds an Alt+right-drag test (resizes, samples nothing), checks the
foreground while an Alt-drag is still held, that a plain click clears the
pixel, and that Control+Alt-drag changes the brush size.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now drags paths through Path Selection's own code (path_ops.rs
path_selection_finish, path_components::move_selected) and drops a stale
vector drag through VectorGestureOwner, and vector_ui.rs is split into
tools/vector_ui/. The separate work_path_drag.rs handler is dropped here, as
the review on the PR asked; the next commit ports the live preview onto
main's code.
Co-Authored-By: FartmanAndBurps <FartmanAndBurps@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An expression such as 50*4 is applied as the field is left, so the
out-of-range check now also counts the frame the field loses focus. A
restored setting (an older 0, a fraction) shows and erases as the field
would store it: a whole number in 1..100.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Holding Alt with the Background Eraser now turns it into the Eyedropper
for that press, as with the Brush, Pencil, Gradient and Paint Bucket: a
click or drag sets the foreground colour, adds no history state and
changes no pixel, and the cursor shows the pipette. Control+Alt stays the
brush-resize gesture.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Like the reference application, a click or drag on a layer with Lock
transparent pixels on erases to transparency and leaves the lock on.
Lock image pixels and Lock all still refuse. The live preview mixes
dabs back without the lock so it shows what the commit does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The options bar's Tolerance field stores whole numbers in 1..100. A value
typed past the range becomes the closest one and, once the field is left,
an alert with OK says "An integer between 1% and 100% is required. Closest
value inserted." paint.backgroundEraser clamps tolerance to 1..100 and its
params doc says so. The brush chip, Limits, Tolerance and Protect
Foreground Color get the reference application's tooltips.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Background Eraser bar gets the Angle field (whole degrees, -180 to 180,
with the reference application's alert for a typed value outside that)
between Tolerance and Protect Foreground Color, and the Pressure for Size
toggle after it. Both edit the tool's own brush through tools.setBrush.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reference application removes a colour stop dragged up past the
opacity stops and an opacity stop dragged down past the colour stops,
not only colour-down / opacity-up. The test that kept them now checks
that they are removed.
Co-Authored-By: ljkx <ljkx@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#10797 landed the Gradient Map drag-off and a shared off_strip() on main.
Conflicts resolved to main's Gradient Map code and main's off_strip(): a
stop comes off the bar dragged up or down, as measured in the reference
application, so the PR's directional stop_dragged_off() is dropped and
Layer Style's Gradient Overlay uses off_strip() too.
Co-Authored-By: ljkx <ljkx@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tool letter pressed mid-drag hands the release to the new tool, so the sampler
drag was never ended and the next Escape (Deselect, a toolbar flyout) was eaten
by it. The Escape hook now drops a sampler drag once the Color Sampler is no
longer the tool, and only consumes Escape while it still is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At the limit a drag off a point drew marker 11 following the pointer, though the
release cannot place it. The marker drawing now skips the new-point preview once
the document has MAX_SAMPLERS points; the release still reports the limit as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Protect Foreground Color skipped every pixel within the whole Tolerance of
the foreground colour, the sampled colour included, so with a foreground
near the sample nothing was erased at all. It now narrows the Tolerance to
the distance between the sampled colour and the foreground colour: the
sample is still erased, the protection fades towards the sample, and the
foreground colour and colours beyond it are kept, as the reference
application does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured in the reference application: in View > Pattern Preview the
Clone Stamp and Healing Brush carry a stroke on across the canvas edges.
Blur, Sharpen, Smudge, Dodge, Burn, Sponge, Color Replacement, Background
Eraser, Pattern Stamp and History Brush show "Symmetry and Pattern Preview
are not supported with this tool ... does not perform wrap-around" and
stop at the edge; Spot Healing stops at the edge too.
Keep the Healing Brush wrap (commit and live preview, through
periodic::stroke) and drop the wrap from the other tools: their commands,
WorkTiles' wrap tile, photocraft_paint::wrap and the canvas params go
back to main's code. Tests: the tiling checks stay for Clone Stamp and
Healing Brush; new tests check that the other tools' strokes, live and
committed, stop at the edge and that the canvas sends `wrap` only for
the two tools that wrap.
Co-Authored-By: VoiceLessQ <44067308+VoiceLessQ@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>