Only the sample match uses the measured increase-plus-decrease distance (#11901).
Protect Foreground Color keeps today's largest per-channel difference, as #11903
asks for its unmeasured cases. The tolerance doc describes the new distance and
the graded falloff.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A press that arrives while the same refusal alert is still open (ui.pointer
can send one) no longer stacks a second alert, as the Background Eraser's
range alert already does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
constrain now keeps the pointer's legs instead of its distance: on a
diagonal step both legs take min(|dx|, |dy|) with their signs, and on a 0
or 90 degree step the dominant component stays and the other becomes 0.
This applies to drawing, to moving either endpoint around the other, and to
a protractor's second arm.
A Mixer Brush stroke in an Indexed Color or Bitmap document now fails before
anything is painted, with the reference's alert texts (convert to RGB Color /
Grayscale mode to edit); paint.mixerBrush returns that error and leaves the
document and History unchanged. A press on the canvas shows it as an Error
alert instead of a status-bar message. RGB, CMYK, Lab and Grayscale still
paint.
Between the Clean after each stroke toggle and Wet: Custom, then Dry, Moist,
Wet and Very Wet with their Light/Heavy variants (separators above each
group). Picking an entry sets Wet, Load and Mix in one change and leaves
Flow; the picked entry stays shown after a typed value, and Reset Tool shows
Custom again.
The Brush must open its alert; the other tools must keep the status-bar
message and open no dialog, as #11898 asks.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
At Smoothing 0 % the gear's four Smoothing Options (Pulled String Mode,
Stroke Catch-up, Catch-up on Stroke End, Adjust for Zoom) are drawn
greyed and can't be toggled, keeping their values, as in the reference
application; above 0 % they work again. For the Brush and the Eraser,
the tools with this gear.
Shift pressed after mouse-down snaps the Patch offset to the dominant axis (0/90 degrees only, no 45); the outline, the live preview and the applied patch use the snapped offset; Shift at mouse-down still adds to the selection. Four tests in patch_shift_constrain_tests.rs cover snapping, the three consumers, the add-at-press case and the no-45-degree case.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
With the Eraser in Block mode, a plain right-click on the canvas opens
the Brush / Pencil / Block menu at the pointer instead of the Brush
Preset picker, whose Size and Hardness mean nothing for the Block, as in
the reference application. Picking an entry sets the mode without
erasing or adding history. Brush and Pencil mode keep the picker,
Shift+right-click opens the menu in every mode, and with the Erase
preference a right-click still erases.
paint.colorReplacement and its live stroke refuse the modes and depths
the reference application refuses, with its words: 32 bit per channel
RGB, Grayscale and Bitmap (only full color modes), and Indexed Color.
Nothing is painted and no history is added. RGB/8, RGB/16, CMYK and Lab
paint as before; cases that weren't measured keep today's behaviour.
A Color Replacement click, stroke or Shift+click segment adds one History
state named "Color Replacement Tool", as in the reference application.
The command's label is the same name, so a recorded action's step reads
the same as the History state.
In a Lab document the Color mode no longer blends through RGB (which
changed the pixel's L): it keeps the stored L and moves a and b to the
foreground's, as in the reference application. Hue, Saturation and
Luminosity keep today's RGB blend.
Keeps main's Fade preview path in filter_preview.rs and passes the PR's
tool colours to the non-Fade preview; catalogs keep both sides' rows.
Co-Authored-By: Firstbober <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the Background Eraser, the options-bar brush picker and a canvas
right-click open the reference application's compact popup instead of
the Brush Preset picker: Size, Hardness and Spacing with sliders, the
angle/roundness widget, Angle and Roundness, then the Size: and
Tolerance: pen dropdowns (Off, Pen Pressure, Stylus Wheel), the latter
with the tablet warning. No preset list or search field. Tolerance's
control is a tool option (Pen Pressure by default); Size's is the tool's
brush. Other tools keep the Brush Preset picker.
Holding Alt turns the Color Replacement tool into the Eyedropper, as in
the reference application: Alt+click and Alt+drag set the foreground
colour with the Eyedropper's settings, add no history state and change
no pixel, and the cursor shows the eyedropper. Ctrl+Alt keeps its
brush-resize meaning; a plain click still paints.