Commit Graph
17991 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 ea9be47f11 Batch fix-up: converting a document converts render stops baked from kept Lab stops (#13855, CodeRabbit on #18551)
Lab stops kept with a method other than Classic bake into stops in the
document's RGB, but the conversion skipped the Lab stops and baked the
render stops again unchanged. Kept stops in another model are now
brought into the old mode first, so the render stops are converted and
still match the kept gradient.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:47:15 +01:00
David MannandClaude Opus 5.5 108c2f638d Batch fix-up: gradient fill edits in CMYK, Gray and Lab documents keep the kept gradient (#13855, CodeRabbit on #18551)
Converting the edited fill to the document's mode converted the baked
render stops too, so they no longer matched the record and a save wrote
generated stops without the method and the kept stops. A kept gradient
that is still baked now has its own stops converted and is baked again;
the live preview uses the same conversion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:47:15 +01:00
David MannandClaude Opus 5.5 c9616de7bb Batch fix-up: adding or deleting an opacity stop keeps the other segments' midpoints (#13855, CodeRabbit on #18551)
Only the split or merged segment of a kept gradient starts halfway; a
segment between the same two stops as before keeps its opacity midpoint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:47:15 +01:00
David MannandClaude Opus 5.5 a46bc09a93 Batch fix-up: retained gradients keep colour-stop alpha on save (#13855, CodeRabbit on #18551)
A saved stop colour carries no alpha, so a kept gradient with translucent
stop colours and no opacity stops was written opaque. The writer now puts
the colour alpha into the opacity stops in that case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:47:15 +01:00
David MannandClaude Opus 5.5 921a6252eb Batch fix-up: a kept gradient without opacity stops of its own no longer matches translucent render opacity (#13855, CodeRabbit on #18551)
A Gradient Overlay given a translucent ramp after import was saved with
that ramp under the kept method, so the next read baked it again into a
different curve. Such a record is now stale and the writer saves the
render stops.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:47:15 +01:00
David MannandClaude Opus 5.5 4dd8ef1920 Batch fix-up: Place Along Path fit, reach and tile limit (CodeRabbit on #18551)
- Fit and the end of the path use how far a tile reaches along the path: an upright tile on a vertical path ends 15 px
  past its centre for the 40 x 30 probe, not 20.
- Fit stretches the steps only as far as every tile still ends at or before the path's end, so shrinking tiles (Scale
  progression below 100 %) no longer reach past it.
- Tiles out of reach of the painted area are skipped (a run at a steady size in one jump) and keep their number and
  place, so spacing, progression and mirroring stay as on the whole path: a path starting far off the canvas no longer
  spends the tile limit there and paints nothing.
- A path that needs more than the 100,000-tile limit over the area is refused with a message, rather than filled part
  of the way and reported as done.
- The per-tile colour drift is worked out once per tile, not per pixel.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:46:21 +01:00
David MannandClaude Opus 5.5 289fe5cc14 Batch fix-up: Symmetry Fill dilations are the same for any selection on the canvas (CodeRabbit on #18551)
The range of dilation steps came from the painted rect, so a small selection dropped enlarged copies that still cover
it (a translucent tile's centre pixel changed), and type 6 numbered its copies from the largest step, so the same copy
drifted to another colour when the range changed. The range now comes from the canvas (with the area), and dilated
copies take their own step as the number for the colour drift; the drawing order stays as it was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:46:21 +01:00
David MannandClaude Opus 5.5 f84e580ebb Batch fix-up: Random Fill along a path ignores the parts out of the area's reach (CodeRabbit on #18551)
A long subpath far off the canvas took nearly all the tiles (and swamped the visible line's share of the arc length),
so the visible line got none. The path's pieces are now clipped to the area grown by Max distance and the largest
tile's reach before the tiles are spread over them; without a path nothing changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:46:21 +01:00
David MannandClaude Opus 5.5 e7c35f7bba Batch fix-up: the dense Spiral edge test checks every selected pixel (CodeRabbit on #18551)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:46:21 +01:00
David MannandClaude Opus 5.5 993a0b7ee6 Batch fix-up: path sampling returns a piece's exact end points (CodeRabbit on #18551)
Far from the origin the blend of a piece's ends loses the near end's digits: a line from (1e16, 0) to (1, 0) sampled
at its length gave (0, 0). The start and the end are now returned as they are.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:46:21 +01:00
David MannandClaude Opus 5.5 ef9a745011 Batch fix-up: Quick Mask pair follows a direct close or a new document (#18135, CodeRabbit on #18551)
Session::close and add_document change the active document without a
command, so the swatches stayed on the Quick Mask pair after the Quick
Mask document closed and the next colour set was undone by the sync after
dispatch. Both now sync the pair with the active document.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:42:37 +01:00
David MannandClaude Opus 5.5 3f5e245d9c Batch fix-up: Classic gradient Behind only on layer pixels (#18211, CodeRabbit on #18551)
On a layer mask, an alpha channel or Quick Mask the Mode list now greys
Behind, and a stored Behind drags in Normal there instead of sending a
combination `paint.gradient` refuses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:33:48 +01:00
David MannandClaude Opus 5.5 e406ce39cd Batch fix-up: Fade keeps Normal in Indexed Color and Bitmap (#18039, CodeRabbit on #18551)
Fade builds its Mode row with the same helper as Fill, so in Indexed
Color and Bitmap its first entry read Threshold, though Fade blends Normal
by its opacity. The Threshold name is now asked for by Fill and Stroke
only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 03:26:34 +01:00
David MannandClaude Opus 5.5 e565bc5d1c Batch: drop the script-dialog refusal test added in f5957f4b52; #18039's new head has the same test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 02:42:14 +01:00
David Mann 2ca6667b06 Merge PR #18396 at its new head (its centre fix matches the batch fix-up; takes its test and overflow-safe centre) 2026-12-01 02:41:39 +01:00
David Mann 71a104e2b6 Merge PR #18401 at its new head (main merges only; the batch already has main) 2026-12-01 02:41:22 +01:00
David Mann 016de904f0 Merge PR #18039 at its new head
# Conflicts:
#	crates/ui-egui/src/dialogs/fill_script_ui.rs
2026-12-01 02:40:51 +01:00
David Mann 243aa0f7af Merge main (7f7d03bf84) into integration-batch-28 2026-12-01 02:40:39 +01:00
David MannandClaude Opus 5.5 46931f405f Batch fix-up: overlay defaults test matches #13855's new gradient fields
#13855 adds midpoints and opacity stops to GradientInterpolation; the
Gradient Overlay defaults test from main destructured the struct with its
old three fields and no longer compiled. Same change as #18392 makes on
top of #13855.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 02:09:06 +01:00
David Mann 7f7d03bf84 Merge queue batch #18490: #15888, #18035, #18412, #18415, #18421, #18418, #18425, #18426, #18419
Merge queue batch: 9 PRs (#15888, #18035, #18412, #18415, #18421, #18418, #18425, #18426, #18419)
2026-12-01 02:02:43 +01:00
David Mann a13b937741 Merge #18419 into the merge queue batch
Type: name the missing-font History states "Replace Fonts" and "Replace All Missing Fonts" (#18324)
2026-12-01 01:20:45 +01:00
David Mann 12034beb24 Merge #18426 into the merge queue batch
Group from Layers: colour only the new group, keep the layers' tags (#18279)
2026-12-01 01:20:43 +01:00
David Mann edd7619e81 Merge #18425 into the merge queue batch
Stack Mode: the result is opaque wherever a layer has a pixel (#18296)
2026-12-01 01:20:41 +01:00
David Mann 3ed876090e Merge #18418 into the merge queue batch
Group measurement data points into one shared selection
2026-12-01 01:20:39 +01:00
David Mann 10303a4557 Merge #18421 into the merge queue batch
Stack Mode: name each mode's History state "Rendering Image Stack <entry>" (#18295)
2026-12-01 01:20:36 +01:00
David Mann dcd316c592 Merge #18415 into the merge queue batch
Smart Objects: name the Reset Transform History state "Reset Transforms" (#18285)
2026-12-01 01:20:34 +01:00
David Mann f526e6a6c7 Merge #18412 into the merge queue batch
Layer Align: centres round a half pixel towards the right and down (#18282)
2026-12-01 01:20:30 +01:00
David Mann 6cb569ce1e Merge #18035 into the merge queue batch
Fill: snap Indexed Color fills to the colour table (#17472)
2026-12-01 01:20:27 +01:00
David Mann 5290b8aaef Merge #15888 into the merge queue batch
Initialize basic XMP for new documents
2026-12-01 01:20:24 +01:00
David MannandClaude Opus 5.5 81869639de Fill: the script dialog alerts on a refused pattern too (#17476)
With Script on, the script dialog's OK runs edit.fill, and its errors
went to the status notice. Both dialogs now report through one helper,
so a pattern Indexed Color can't take shows the alert with OK there too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 01:19:28 +01:00
David Mann fe45033881 Merge pull request #18414 from davidmann4/fix/18413-new-document-look
New Document: darker preset pane, clipboard glyph, compact details, resizable (#18413)
2026-12-01 01:16:34 +01:00
David Mann 6daf9b92a1 Merge PR #18400 at its new head: Fill: Spiral script pattern (#17432) 2026-12-01 00:44:11 +01:00
David MannandClaude Opus 5.5 f5957f4b52 Batch fix-up: CodeRabbit findings on #18039 and #18396
#18039: OK in a script dialog on a pattern Indexed Color can't take now
shows the same alert with OK as the Fill dialog, instead of a plain
notice; a test covers the script path.

#18396: Symmetry Fill turns about the selection's own centre, also when
the selection reaches past the canvas, not the centre of its clipped
part.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 00:43:18 +01:00
David MannandClaude Opus 5.5 4d4324155f Fill: Spiral reaches the covering tiles in the tightest packings (#17432)
Each turn of the spiral now offers only the tiles within reach of the
pixel, found by the law of cosines over the turn's radius band, and the
turns are walked lazily from the outside in. Past the try limit the
topmost tile whose centre lies within half the tile's shorter side,
which covers the pixel however it is turned, stands in, so a covered
pixel is never left transparent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 00:41:19 +01:00
David Mann 709be2b929 Merge PR #18039 at its new head: Fill: Threshold mode and greyed entries in Indexed and Bitmap (#17476) 2026-12-01 00:40:34 +01:00
David Mann f89db72976 Merge main (860846efe4) into integration-batch-28 2026-12-01 00:40:31 +01:00
David Mann 860846efe4 Merge pull request #18380 from davidmann4/fix/adjustment-layer-glyphs-9038
Layers panel: each adjustment layer shows its own glyph (#9038)
2026-12-01 00:39:34 +01:00
David Mann 79f18d531c Merge PR #18396: Fill: Symmetry Fill script with 33 symmetry types (#17433)
# Conflicts:
#	crates/compose/src/scripted_pattern.rs
#	crates/engine-paint/src/cmd/fill_cmds.rs
#	crates/engine-paint/src/fill_script_brick_tests.rs
#	crates/engine-paint/src/lib.rs
#	crates/ui-egui/src/dialogs/fill_script_ui.rs
2026-12-01 00:33:46 +01:00
David MannandClaude Opus 5.5 f6d6f7309f Batch fix-up: Fill tests after #18135, #18035 and #18039 meet
#18135 gives Quick Mask its own swatch pair, so the Quick Mask grey tests
of #17487 (main) and #18070 now pick their colour after entering Quick
Mask instead of before. #18039 refuses every blend mode but Threshold and
Dissolve and the Content-Aware fill in Indexed Color, so #18035's "other
contents and blend modes stay inside the table" test checks that those
fills are refused and leave the pixels unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 00:31:14 +01:00
David Mann a9e76540b6 Merge PR #18401: Fill: Place Along Path scripted pattern (#17430)
# Conflicts:
#	crates/compose/src/scripted_pattern.rs
#	crates/engine-paint/src/cmd/fill_cmds.rs
#	crates/engine-paint/src/fill_script_brick_tests.rs
#	crates/engine-paint/src/lib.rs
#	crates/ui-egui/src/dialogs/fill_script_ui.rs
#	crates/ui-egui/src/dialogs/fill_script_ui_tests.rs
2026-12-01 00:18:15 +01:00
David MannandClaude Opus 5.5 c43e59cfd0 New Document: glyph preset cards (#18413)
PhotoCraft's preset cards take PresetCardLook::Glyph (line-art sheets on flat cards, a clipboard on the Clipboard
card), from storytold/craft-libs#4562, which is in the craft-libs commit #18380 pins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 00:08:00 +01:00
David Mann 0d525b369c Merge PR #18400: Fill: Spiral script pattern (#17432)
# Conflicts:
#	crates/compose/src/scripted_pattern.rs
#	crates/engine-paint/src/cmd/fill_cmds.rs
#	crates/engine-paint/src/fill_script_brick_tests.rs
#	crates/engine-paint/src/lib.rs
#	crates/ui-egui/src/dialogs/fill_script_ui.rs
#	crates/ui-egui/src/dialogs/fill_script_ui_tests.rs
2026-12-01 00:00:36 +01:00
David Mann af90311ba3 Merge PR #18036: Fill: a scripted colour fill becomes the dialog's colour (#17471)
# Conflicts:
#	crates/engine-paint/src/cmd/fill_cmds.rs
2026-11-30 23:56:52 +01:00
David Mann 2c300da176 Merge PR #18039: Fill: Threshold mode and greyed entries in Indexed and Bitmap (#17476)
# Conflicts:
#	crates/ui-egui/src/dialogs/fill_ui.rs
2026-11-30 23:56:05 +01:00
David Mann 8c2697a1ac Merge PR #18070: Fill: Quick Mask colour fill uses the reference grey weights (#17485)
# Conflicts:
#	crates/engine-paint/src/cmd/fill_cmds.rs
2026-11-30 23:55:51 +01:00
David MannandClaude Opus 5.5 d14bb8bd16 Merge main into fix/17476-fill-threshold-indexed-bitmap
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 23:55:48 +01:00
David MannandClaude Opus 5.5 f1d9568ce5 Merge main into fix/17476-fill-threshold-indexed-bitmap
Combines the Indexed/Bitmap greyed Contents with main's Quick Mask rule
(#17488): an entry is greyed when any of the rules greys it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 23:55:40 +01:00
David Mann c2dd8262d8 Merge PR #18398: Fill: Random Fill script (#17431) 2026-11-30 23:55:22 +01:00
David Mann 03934fd0d9 Merge PR #13855: Gradient Fill layers and Gradient Overlay keep Photoshop's gradient 2026-11-30 23:55:19 +01:00
David Mann 765bca1b0c Merge PR #18211: Gradient: the Classic gradient Mode list gets Behind (#12011) 2026-11-30 23:55:16 +01:00