Commit Graph
16271 Commits
Author SHA1 Message Date
Dan aec5cee320 Add Black & White adjustment presets 2026-11-24 22:56:23 +00:00
David Mann dd56106df2 Merge queue batch #16705: #14467, #16250, #16290, #15965, #16318, #16308
Merge queue batch: 6 PRs (#14467, #16250, #16290, #15965, #16318, #16308)
2026-11-24 23:44:15 +01:00
David Mann 928b9ff707 Merge #16308 into the merge queue batch
Smudge: Alt turns Finger Painting the other way for the stroke
2026-11-24 22:20:19 +01:00
David Mann e67693730f Merge #16318 into the merge queue batch
Create Ellipse: open with the active ellipse's size, else 100 x 100
2026-11-24 22:20:19 +01:00
David Mann c80a7a618c Merge #15965 into the merge queue batch
fix(engine): Auto-Blend Layers is unavailable with a type layer or smart object selected (#14204)
2026-11-24 22:20:18 +01:00
David Mann 223d159e6a Merge #16290 into the merge queue batch
Magic Eraser: alerts for a hidden layer, a locked layer and a group
2026-11-24 22:20:17 +01:00
David Mann f1c86f09c6 Merge #16250 into the merge queue batch
Content-Aware Fill: choosing Custom asks for the Sampling Brush
2026-11-24 22:20:17 +01:00
David Mann 7e8d2959ca Merge #14467 into the merge queue batch
New Document: documents created alike stay separate Recent items (#14038)
2026-11-24 22:20:16 +01:00
David Mann 32f53c8fbb Merge queue batch #16687: #16079, #16122
Merge queue batch: 2 PRs (#16079, #16122)
2026-11-24 22:18:16 +01:00
RickiNano c473b4108a New Document: test that documents created alike stay separate Recent items (#14038)
Creates two equal documents through the hosted dialog and checks that the
engine's Recent list, the list after a restart and the list handed to the
dialog keep both, newest first.
2026-11-24 20:42:16 +01:00
RickiNano f27cd5f0b9 Merge main into fix/new-doc-recent-items-14038
Since #15449 File › New is the shared NewDocumentDialog, so the old
app-local Recent heading, grid and tests are dropped in favour of main's
dialog code; that part now goes through storytold/craft-libs#2261.
Kept: document.recent.add and load_recent keep equal settings as
separate entries, now in crates/engine-core.
2026-11-24 20:42:15 +01:00
x-labb f5ee04545a fix(engine): Auto-Blend Layers is unavailable with a type layer or smart object selected (#14204)
Auto-Blend collected only the selected pixel layers, so with a type layer or a smart object in
the selection it blended the pixel layers and ignored the rest. The reference application
refuses: the command is not available and no history state is added.

Gives Auto-Blend its own enabled check (a type layer or smart object among the selected layers
makes it unavailable) and the same guard at the start of the run. Auto-Align keeps its check.
2026-11-24 20:40:11 +01:00
David Mann 9d4d331a40 Merge #16122 into the merge queue batch
Freeform Pen: Shift leaves the freehand stroke as drawn
2026-11-24 20:22:50 +01:00
David Mann 11f3caafc5 Merge #16079 into the merge queue batch
Assign Profile: ask before assigning on a document with layers
2026-11-24 20:22:49 +01:00
David Mann db1402989f Merge queue batch #16679: #16655, #13486, #15281
Merge queue batch: 3 PRs (#16655, #13486, #15281)
2026-11-24 20:17:08 +01:00
David Mann aa84e9e920 Merge #15281 into the merge queue batch
Print: Units lists Inches, Centimeters, Millimeters, Points and Picas (#14136)
2026-11-24 18:46:10 +01:00
David Mann 5146eca6de Merge #13486 into the merge queue batch
ui: canvas layer menu reads Duplicate/Delete/Rasterize Layers with several layers selected (#12358)
2026-11-24 18:46:10 +01:00
David Mann 01459afbd7 Merge #16655 into the merge queue batch
Warp: remove the split line at the picked anchor
2026-11-24 18:46:09 +01:00
FredApps e56522780f Merge pull request #16532 from FredApps/fix/16494-highlight-rebuild
raw: rebuild sensor-clipped highlights instead of clipping after white balance
2026-11-24 18:44:40 +01:00
David Mann 9280edf89f Merge queue batch #16656: #14522, #15375, #15968, #16599, #16633, #16629
Merge queue batch: 6 PRs (#14522, #15375, #15968, #16599, #16633, #16629)
2026-11-24 17:55:05 +01:00
Dan 530eb4191e Warp: remove the added split from its inner anchors 2026-11-24 16:19:06 +00:00
FredApps f7fe0b1c89 raw: tell sensor clipping before lens shading; native-only worker test
- `sensor_clipped` and the rebuild's clip mask read the measured sample
  before the DNG gain map: a gain above one no longer makes an unclipped
  sample count as clipped, and a gain below one no longer hides a sample
  the sensor clipped. The rebuild applies the gain map after the mask,
  before white balance; the clamped path is unchanged.
- The worker-budget test runs only where `with_threads` can size a pool
  (not wasm32).
- New test: a sensor-clipped green disc under a 0.8 gain map is rebuilt
  neutral (fails without the fix: [28740, 27176, 29334]).

Part of storytold/craft-libs#778
2026-11-24 17:13:12 +01:00
David Mann 9b75c540ae Merge #16629 into the merge queue batch
feat(ui): editing a live shape with Direct Selection asks first (#13216)
2026-11-24 16:28:05 +01:00
David Mann b188ab3476 Merge #16633 into the merge queue batch
Layers to Files: alert when the document only has a Background (#13968)
2026-11-24 16:28:05 +01:00
David Mann ec8d88afac Merge #16599 into the merge queue batch
fix(ui): Patch on a Type layer opens the rasterize prompt (#12121)
2026-11-24 16:28:04 +01:00
David Mann 0cdf70820a Merge #15968 into the merge queue batch
feat(canvas): Type-tool right-click off text opens the layer menu
2026-11-24 16:28:04 +01:00
David Mann 2007607abf Merge #15375 into the merge queue batch
Rectangle and Triangle tools: the shape and path canvas menu (#13341, #13367)
2026-11-24 16:28:03 +01:00
David Mann 177309f6e2 Merge #14522 into the merge queue batch
Frame tool: the arrow over a frame, not the move cursor (#13883)
2026-11-24 16:28:03 +01:00
David Mann f35bd318a2 Merge pull request #16666 from davidmann4/fix/object-selection-grabcut-iterations
Object Selection: run GrabCut until it settles (#6975)
2026-11-24 16:26:24 +01:00
FredApps e75657ae55 raw: answer the highlight-rebuild review (budget, CFA period, white)
- The rebuild's memory admission counts the AHD tile scratch of every
  worker the whole-frame demosaic runs, not one; a frame that no longer
  fits keeps the clip-after-balance fallback and its warning.
- `Cfa::is_bayer` requires an even period on both axes: a 3x2 RGR/GBG
  looked Bayer over two columns, and the rebuild then applied the green
  gain to a red sample at x = 3.
- The rebuild's white is the balanced camera RGB the active colour model
  renders neutral (a camera look may tint [1, 1, 1]); models that already
  render [1, 1, 1] neutral keep it exactly, so existing output is unchanged.
- Tests: the odd-strip AHD fixture stays below the sensor clip and says
  so; both clipped-disc tests require the disc brighter than its surround;
  new tests for the worker budget, the tinting look and the 3x2 CFA each
  fail without their fix.

Part of storytold/craft-libs#778
2026-11-24 15:47:00 +01:00
David MannandClaude Opus 5.5 dca6824c98 Object Selection: run GrabCut until it settles (#6975)
A loose rectangle around a person on a backdrop lit brighter towards the
middle selected a large straight-edged patch of the backdrop. Only the ring
outside the rectangle seeds the background model, so each pass gives up just
the next brightness band of backdrop, and the fixed cap of 8 passes stopped
half way. Raise the cap to 30; cuts that settle earlier still stop at the
existing change check, so the usual case costs the same.

Two regression tests on a synthetic lit-backdrop figure, at step 1 and at
step 2 with the band re-cut: 21041 and 81534 backdrop pixels at 8 passes,
0 and 8 at 30.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 15:35:39 +01:00
David Mann b24315d068 Merge remote-tracking branch 'origin/main' into fix/object-selection-grabcut-iterations 2026-11-24 15:35:39 +01:00
David Mann 75edf42c64 Merge pull request #16589 from davidmann4/fix/home-screen-file-drop
Files dropped on the Home screen open again (#16588)
2026-11-24 15:20:39 +01:00
David Mann aa92b8e97b WIP: Object Selection runs GrabCut until it settles (#6975) 2026-11-24 15:17:23 +01:00
David Mann b9537a174b Merge pull request #11756 from superplay2021/fix-pixel-aligned-shape-strokes
Add opt-in Align Edges rendering for shape layers
2026-11-24 15:00:27 +01:00
e6b7ac6df3 Fix-up for #11756: no Align Edges on the Star tool, as main's Polygon change says
Main's #13326 tests keep the Star tool without the checkbox (the reference
application has no Star tool; its stars are the Polygon tool's). Keep that,
and the comments and docs that name the Polygon drag.

Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 14:17:09 +01:00
superplay2021 742efd64fe Merge latest main and reconcile Polygon Align Edges 2026-11-24 15:02:26 +02:00
David MannandClaude Opus 5.5 0349435d50 Address CodeRabbit review: a canvas drop goes to the document the canvas shows
While the active document floats, the main canvas shows a docked one. A
file dropped on that canvas was placed into the floating document, at
coordinates from the floating window's view. The drop now activates the
document the canvas shows, as a press does, then places into it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 13:56:55 +01:00
David Mann ada83e9d88 Merge queue batch #16634: #13891, #13931, #15357, #16618, #16627
Merge queue batch: 5 PRs (#13891, #13931, #15357, #16618, #16627)
2026-11-24 13:56:04 +01:00
85324d2fe7 Fix-up for #11756: clippy, and keep the Pen carry-on test about carrying on
With Align Edges on by default the stroked layer renders on 20..81 and
View > Snap To pulls the y = 80 press onto that edge; the test now makes the
layer without Align Edges.

Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 13:49:03 +01:00
Dan 608760bf21 Use the internal command argument for the Warp pick 2026-11-24 12:33:44 +00:00
Dan a4f869fe51 Warp: remove the split line at the picked anchor 2026-11-24 12:30:59 +00:00
5d5f32665a Fix-up for #11756: name the bounds tuple for clippy
Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 13:12:10 +01:00
f2ac09d2ec Fix-up for #11756: Align Edges as the reference application renders it
The PR snapped shapes with a per-edge heuristic (pixel_align.rs, dash-cap tie
rules, a PSD coordinate-frame field threaded through engine, format and caches),
defaulted the option to off, and renamed the existing Rectangle/Triangle
"Align Edges" checkbox to "Snap Bounding Box" next to a second checkbox.

The reference application fits the whole shape at render time: the bounds of
what it paints (fill, or the stroke's outer edge) get a whole-pixel left/top
(a half rounds up) and a whole width/height, and the path is translated and
scaled into that box. Fill and stroke take one transform; curves stay
antialiased; inner edges of several subpaths are not snapped.

- photocraft_vector::align_edges implements that rule; CompiledShape applies it,
  so caches, the compositor, previews and extents agree; the fill/stroke split
  under layer effects starts from the whole shape's transform.
- Removed pixel_align.rs, the rasterizer helpers it needed, the document-space
  drag preview and psd_coordinate_frame (rounding the bounds absorbs the PSD
  quantization it was for).
- One Align Edges checkbox (ToolOptions::align_edges, stored and scripted as
  useAlignedRendering, older align_edges still read) on every shape tool and the
  Pen, on by default and after Reset Tool; it snaps the drag and sets the layer.
- PSD sn2P: written as 1 when on and left out when off, as the reference saves it.
- Dropped the dead path.set param, moved the control-protocol paragraph,
  rewrote docs/pixel-aligned-strokes.md, reverted the unrelated raw, font,
  Cargo and test-harness changes.
- Tests reproduce the measured cases (rectangles at .25/.4/.5/.6/.75, ellipse
  extremes and curve symmetry, 1/2/3 px strokes, rotated rect, Pen triangle,
  two subpaths, toggle off, stored path unchanged, one checkbox, Reset Tool).

Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 13:02:42 +01:00
David Mann ff0a368ce0 Merge remote-tracking branch 'origin/main' into pr-11756 2026-11-24 12:32:50 +01:00
David Mann 8bc36fb41c Merge #16627 into the merge queue batch
Filter Save a Copy formats by colour mode and depth
2026-11-24 12:32:14 +01:00
David Mann edd366190f Merge #16618 into the merge queue batch
Path Selection Delete removes paths, not the layer; Properties eyedropper picks
2026-11-24 12:32:14 +01:00
David Mann 873dc95464 Merge #15357 into the merge queue batch
Polygon tool: Align Edges checkbox (#13326)
2026-11-24 12:32:14 +01:00
David Mann d6c1546d5d Merge #13931 into the merge queue batch
Artboards to Files: Include Background in Export leaves the board's fill out (#13631)
2026-11-24 12:32:13 +01:00
David Mann 1b83dbc49a Merge #13891 into the merge queue batch
Create Droplet: the Play options are saved in the droplet and used by each run (#13709)
2026-11-24 12:32:13 +01:00