Commit Graph
17295 Commits
Author SHA1 Message Date
qvest-ssels b4657ddf8d Brush Settings: Brush Pose Pressure takes 1 to 100 % (#17629) 2026-11-29 20:22:17 +01:00
David Mann cf0753ad7b Merge pull request #17947 from davidmann4/fix/options-bar-tool-arrow-centred
Options bar: centre Home, the tool icon and its arrow on the bar's line (#17946)
2026-11-29 18:26:35 +01:00
FredApps a24a1cb7ad Adopt retained UI registrations and paint storage (#17809)
* 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
2026-11-29 18:02:25 +01:00
David MannandClaude Opus 5.5 d296eea8b1 Options bar: centre Home, the tool icon and its arrow on the bar's line (#17946)
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]>
2026-11-29 17:24:28 +01:00
David MannandClaude Opus 5.5 932d1e5aef WIP: centre the options bar's tool arrow beside the tool icon (#17946)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 17:05:27 +01:00
David Mann db731507eb Merge queue batch #17936: #14041, #17886
Merge queue batch: 2 PRs (#14041, #17886)
2026-11-29 16:47:35 +01:00
David Mann a3fc971484 Merge #17886 into the merge queue batch
Name the Transform Again history step
2026-11-29 15:32:29 +01:00
David Mann 347274b022 Merge #14041 into the merge queue batch
Layers to Files: an adjustment layer gets its own file, like an empty layer (#13966)
2026-11-29 15:32:29 +01:00
David Mann 5ade830905 Merge queue batch #17915: #15091, #17575, #17524, #17805, #17529, #17675, #16678, #17854
Merge queue batch: 8 PRs (#15091, #17575, #17524, #17805, #17529, #17675, #16678, #17854)
2026-11-29 15:31:29 +01:00
David MannandClaude Opus 5.5 dfb6eea5db Merge origin/main into fix/layers-to-files-adjustment-13966
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]>
2026-11-29 14:17:43 +01:00
David Mann 0a197f1ea5 Merge #17854 into the merge queue batch
Honor the rotation direction in recorded Crop actions
2026-11-29 14:15:40 +01:00
David Mann 48e8544c37 Merge #16678 into the merge queue batch
Info panel: restore live colour and position readouts on canvas hover (#16654)
2026-11-29 14:15:39 +01:00
David Mann 6a0f4954ce Merge #17675 into the merge queue batch
Auto-Align Layers: Vignette Removal brightens the aligned layers' corners (#14197)
2026-11-29 14:15:38 +01:00
David Mann b7ee932e83 Merge #17529 into the merge queue batch
Frames: Convert to Frame resizes around the layer's centre (#17325)
2026-11-29 14:15:38 +01:00
David Mann 7aa6ff7dd5 Merge #17805 into the merge queue batch
Restore captured settings when resetting a workspace
2026-11-29 14:15:37 +01:00
David Mann ed90cf7501 Merge #17524 into the merge queue batch
Layers: Background from Layer is greyed with several layers selected (#17306)
2026-11-29 14:15:36 +01:00
David Mann 0c3ff5531e Merge #17575 into the merge queue batch
Record Measurements: warn and record nothing when no data point is enabled for the source (#17407)
2026-11-29 14:15:35 +01:00
David Mann 9327c00138 Merge #15091 into the merge queue batch
Edit › Fade names the step it fades, in its own menu group, with the same label in the right-click menu
2026-11-29 14:15:35 +01:00
David Mann d056dc4e99 Merge queue batch #17856: #17266, #17334, #17822, #17823, #17836, #17843, #17574
Merge queue batch: 7 PRs (#17266, #17334, #17822, #17823, #17836, #17843, #17574)
2026-11-29 14:14:29 +01:00
Dan f55005ce12 Name the Transform Again history step (#17860) 2026-11-29 12:34:29 +00:00
David MannandClaude Opus 5.5 4ede13f851 Fade label tests: PhotocraftApp::new returns a Box on main
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 13:20:19 +01:00
RickiNano bf6229a7af Vignette estimate: the channel count as a match, which rustfmt keeps on one line each (#14197) 2026-11-29 13:12:58 +01:00
David MannandClaude Opus 5.5 b3fbeda8de Canvas menu Fade row: one label type for every arm; restore the label's characters
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]>
2026-11-29 12:59:16 +01:00
David Mann 9eb11ff8f0 Merge #17574 into the merge queue batch
Measurement Scale: read "<px> pixel(s) = <length> <units>" on one line (#17414)
2026-11-29 12:44:27 +01:00
David Mann 45aa1db99d Merge #17843 into the merge queue batch
Gradient: no dither noise in 16-bit RGB and Grayscale documents (#17544)
2026-11-29 12:44:27 +01:00
David Mann 599adadc78 Merge #17836 into the merge queue batch
Brush: Escape with no stroke keeps the selection (#17609)
2026-11-29 12:44:27 +01:00
David Mann fc7c5e41aa Merge #17823 into the merge queue batch
Pencil: a Grayscale document takes the foreground through colour management (#17559)
2026-11-29 12:44:26 +01:00
David Mann b9a0948eac Merge #17822 into the merge queue batch
Warp: the Free Transform warp toggle is the history step "Free Transform" (#17579)
2026-11-29 12:44:26 +01:00
David Mann 113bc44e9d Merge #17334 into the merge queue batch
Use the brush short axis for dab spacing
2026-11-29 12:44:26 +01:00
David Mann 474e5938f6 Merge #17266 into the merge queue batch
Add File Info category pages
2026-11-29 12:44:25 +01:00
David Mann d06a8fca82 Merge queue batch #17810: #17561, #17718
Merge queue batch: 2 PRs (#17561, #17718)
2026-11-29 12:43:24 +01:00
Dan d4380ddf59 Honor the rotation direction in recorded Crop actions (#17690) 2026-11-29 11:36:15 +00:00
David MannandClaude Opus 5.5 0f20c47fb9 Merge main into fix/fade-menu-label
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]>
2026-11-29 12:34:41 +01:00
RickiNano c193177e5b Auto-Align Vignette Removal: brighten Lab through XYZ, in the toe of L* too (#14197)
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).
2026-11-29 12:33:56 +01:00
qvest-ssels 68beac427d Merge remote-tracking branch 'origin/main' into mm-17529
# Conflicts:
#	crates/engine-core/src/cmd/frame_cmds.rs
2026-11-29 12:29:48 +01:00
qvest-ssels 38a3b5f5b6 Merge remote-tracking branch 'origin/main' into mm-17524
# Conflicts:
#	crates/engine/tests/it/main.rs
2026-11-29 12:28:39 +01:00
RickiNano 1a63bb9068 Auto-Align Vignette Removal: thin K when C, M and Y can't carry it; Lab without a cast (#14197)
- 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.
2026-11-29 12:22:51 +01:00
RickiNano 1ebc72122f Auto-Align Vignette Removal: fit CMYK light, keep the reference in one frame (#14197)
- 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.
2026-11-29 12:09:33 +01:00
qvest-ssels 269175bfe2 Gradient dither: skip the noise only in 16-bit RGB and Grayscale (#17544)
The issue measured RGB 16 and Grayscale 16. CMYK 16 and Lab 16 were not
measured, so they keep today's dither; a test checks that they still do.
2026-11-29 11:33:00 +01:00
qvest-ssels 49a2e9189c Brush Escape: rustfmt (#17609) 2026-11-29 11:25:18 +01:00
David Mann 7828cf6ea8 Merge #17718 into the merge queue batch
Keep saved workspace captures when resetting preferences
2026-11-29 11:23:23 +01:00
David Mann 9597153aea Merge #17561 into the merge queue batch
Painting symmetry turns off when its path is deleted, and undo restores it (#17384)
2026-11-29 11:23:23 +01:00
David Mann 399a90a007 Merge queue batch #17598: #17595, #17523, #17597, #17630, #17585
Merge queue batch: 5 PRs (#17595, #17523, #17597, #17630, #17585)
2026-11-29 11:22:22 +01:00
qvest-ssels cd8a606c04 Pencil gray: read the foreground in the session's working RGB (#17559) 2026-11-29 11:21:40 +01:00
Dan 5fbc4dbc8b Restore captured settings when resetting a workspace (#17648) 2026-11-29 10:14:08 +00:00
qvest-ssels 6f36e86cb0 Brush: an idle Escape keeps the selection (#17609)
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).
2026-11-29 11:03:50 +01:00
qvest-ssels eac5901559 Pencil: a Grayscale document takes the foreground through colour management (#17559)
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.
2026-11-29 11:02:23 +01:00
yoriswind fdd2b7b61d Merge current main retaining Spacing and Brush Pose regressions 2026-11-29 01:54:53 -08:00
yoriswind 5b62ffb022 Merge current main preserving File Info and Open As commands 2026-11-29 01:53:03 -08:00
qvest-ssels a27e380690 Warp: Free Transform's warp toggle commits a Free Transform step (#17579)
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.
2026-11-29 10:35:28 +01:00