engine-core's session has no edit.fill, so the tests paint the layer through
Session::edit. The options bar writes the wand's sample size only when the
pick changes it, so idle frames don't move the tool options revision.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A contiguous fill marked the clicked pixel without comparing it with the
averaged reference, so it selected a pixel a global match would not.
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]>
Ports the Magic Wand Sample Size option to main's layout: the engine part to
engine-core, the options-bar dropdown to panels/options_bar/selection.rs on
the craft UI framework (SampleSizeSelect), the canvas click to
canvas/tools/selection.rs.
Also fixes the two CodeRabbit findings: a global match now compares every
pixel, the clicked one included, against the averaged reference instead of
overwriting the clicked pixel (wand_region_with_reference in algo), and a
restored sample size the wand refuses falls back to Point Sample.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main moved the command to engine-core and now refuses documents with type
layers and smart objects (#11799), so the type-layer test is replaced. Also
addresses the review: only rectangle shapes and Color Fills are kept (other
shapes, Gradient and Pattern Fill rasterize, as the issue asks), the
parallelogram test scales its tolerance with the short side, and the docs say
when vector masks are rasterized.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
* Adopt merged retained UI and paint storage across PhotoCraft
* Adapt UI inspections and preference labels to the shared revision
* Share retained-paint text inspection across UI tests
Select Layer Below on the bottom row of the Layers panel now selects the
top row, and Select Layer Above on the top row the bottom one, as in the
reference application. Adding the layer above or below to the selection
(Alt+Shift+[ / ]) still stops at the ends, since that case wasn't
measured.
Layers to Files moved to engine-core and now walks groups. The adjustment
rule moves into plan_layer_exports: PNG and JPEG export a top-level,
unmasked adjustment like an empty layer; one inside a group (not
measured) keeps the skip, pinned by a new test. PNG names now use dashes
for spaces, so the PNG test expects doc_0000_Levels-1.png.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main moved the menus onto the craft UI framework (#15449): menus/render.rs is gone,
menu rows are `Row`s from `menu_rows`, and the canvas menu builds `Entry`s. The Fade
label hook now finds its row with `find(&mut rows, ..)`, `fade_label` lives in
menus/state.rs next to `translated_fade_label`, the canvas menu's Fade row reads it in
`entries`, and the tests read `menu_rows`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lab's a and b grew with (L* + 16), which matches brighter light only
where Lab's companding is a cube root; in the linear toe (L* below about
8) it changed the shadows' saturation. The correction now turns the
pixel into X, Y and Z relative to white, scales all three by the
luminance ratio, and encodes it back with the piecewise companding.
New test: a_brightened_lab_shadow_keeps_its_colour (fails without the change).