Every craft-libs pin, craft-pcraft-tip and craft-ipp included, stays on craft-libs#4276's merge
commit bfd8fec3, which contains main's 9ad1dbf1 and #17914's 955c64f1.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
main's #17809 already moved the egui and winit forks and taught the tests egui's retained paint
chunks, the same work as this branch; main's side is kept for every test file and the Preferences
row. What remains is the craft-libs pin move 9ad1dbf1 -> 955c64f1 (10 commits: craft-libs#4263,
#4264, #4257), with craft-pcraft-tip and craft-ipp moved alongside as main now keeps them.
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
40 wheel steps down and 40 up only came back to the start, so a row above the opening position was
never checked. 80 steps up reach it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On top of #17914's pin at 955c64f1 (same egui and winit forks): brings EyedropperTool::ring / ::held,
which the sampling ring fix needs. The ring test opens egui's retained paint chunks, where an idle
pass's ring can sit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
craft-libs 8c807a9a0 shows a check box's own label when it sits in a row inside the
field that names it, so the row showed "Memory Usage Percent" twice. The row now draws
its own label, on the check box, and the window adds none, as for Rendering Mode.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PcEyedropper is built anew each pass, and so is the craft-libs EyedropperTool inside it, whose ring
started at none: a pass with no pointer input painted no ring, so it flickered. EyedropperState now
keeps the ring with its canvas and hands it to the next pass's tool while that canvas's gesture runs.
Needs storytold/craft-libs#4276 (EyedropperTool::ring / ::held) in the pin.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
egui 14c39fed replays unchanged paint records as Shape::PaintChunk, so the
test helpers that look for painted text, paths, meshes and icons open those
chunks as they open shape lists. The paper list can reopen scrolled to its
chosen row, so the custom paper test's reveal scrolls down and then up.
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 Keyboard Shortcuts dialog can offer one Undo button that steps only the
last change and turns into Redo (Options::undo = UndoButtons::Toggle), which
Edit > Keyboard Shortcuts needs for #14314. The two crates pinned on their own
(craft-pcraft-tip, craft-ipp) keep their revision.
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.