* 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
The lead is a memoized view, and a memoized view's children take no slots on the
bar's row line: they stood at the top of the view, Home and the tool icon about
6 px above the options after them and the small arrow higher still. The lead's
members now sit in a row of their own, as PaintBar's do.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
The merge's Fade arm returned a `String` while the other arms return `&str`, and the
row's `Fade…` literal had been re-encoded, so it could not match. Sort the menus.rs
re-export as rustfmt wants.
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).
- CMYK: the light the inks let through is brightened once and re-encoded.
C, M and Y thin out while they can carry it, and K thins out as far as
the brightest light needs, so a grey printed in K alone brightens too.
Where C, M and Y can carry it, the result is as before.
- Lab: the estimate reads one channel, L as sRGB-encoded luminance, and
the correction brightens that light and turns it back into L. a and b
grow with (L* + 16), as they do when the light itself is brighter, so a
neutral pixel stays neutral instead of taking a cast.
New tests: shifted_vignetted_cmyk_layers_in_black_ink_alone_come_out_flatter_with_their_corners_brightened,
shifted_vignetted_lab_layers_come_out_flatter_without_a_colour_cast.
Both fail without the change.
- The estimate read CMYK samples as they are stored, as ink, which grows
towards darkened corners, so it fitted ink growth and then brightened
the light. It now reads the red, green and blue light the inks let
through. The correction brightens the light of C, M and Y only: K's
light multiplies theirs, so brightening it too would brighten twice.
- With Geometric Distortion fitting a nonzero k1, the reference's
placement carries that k1 but its pixels stay as they are. The
estimate now reads the reference warped by its placement, as it reads
the layers that moved, and its correction measures radii with k1 = 0,
in its own pixels.
New test: shifted_vignetted_cmyk_layers_come_out_flatter_with_their_corners_brightened.
With the Brush tool and no stroke, Escape no longer deselects and adds
no History state, as in the reference application. It still resets a
rotated view and leaves full screen first; other tools keep the idle
Escape deselect (#2674).
The Pencil's colour goes through craft-cms into the document's gray
(relative colorimetric, black point compensation) instead of the
Rec. 601 luma sum: the gray profile in 8 and 16 bit, its linear version
in 32 bit. 30,120,200 paints 63.9 % ink in Gray 8 and 82.7 % in Gray 32
(reference 63.5 and 82.7). Masks, channels and documents outside the
default gray working space keep today's colour.
A warp committed from a Free Transform session's warp toggle on a pixel layer
is one History step named Free Transform, as in the reference; Edit >
Transform > Warp stays Warp. edit.transform.warp takes an optional stepName,
Warp or Free Transform, and refuses any other value.
The Free Transform session remembers that its Warp mode came from the toggle
of an untouched box (free_transform_warp); Edit > Transform > Warp clears it.
Type layers, smart objects, selections and a box transformed before the
toggle keep Warp.