14480 Commits
Author SHA1 Message Date
David Mann 830316b775 Merge pull request #16955 from davidmann4/fix/16905-repin-own-window-moves
RAW Develop's window moves and resizes again (#16905)
2026-11-25 16:11:58 +01:00
David MannandClaude Opus 5.5 6604a4cec8 Move craft-libs to storytold next a165ef3a2c and egui to b15ffe9bf (own-window dialogs move and resize, storytold/craft-libs#3476)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:09:15 +01:00
David Mann 416983ec51 Merge #16534 into the merge queue batch
fix(ui): Calculations channel dropdowns list Gray/RGB/Layer Mask/Transparency (#14521)
2026-11-25 14:55:30 +01:00
David Mann a9b731d104 Merge #16012 into the merge queue batch
Brightness/Contrast: refuse a hidden or empty pixel layer (#14359)
2026-11-25 14:55:29 +01:00
David Mann 5a635583f4 Merge #16935 into the merge queue batch
feat(dialogs): the Calculations dialog previews its result channel in grey
2026-11-25 14:55:29 +01:00
David Mann 8b2d05dbab Merge #16945 into the merge queue batch
Free Transform: Rotate and Flip presets commit on whole pixels
2026-11-25 14:55:28 +01:00
David Mann 71f317aa2f Merge #16417 into the merge queue batch
fix(algo): HDR Toning stretches an ordinary image to the full range (#14723)
2026-11-25 14:55:28 +01:00
David Mann ac393630ea Merge #16686 into the merge queue batch
feat(vector): every Pen click gets its own History entry (#12890)
2026-11-25 14:55:27 +01:00
David Mann 48ac8e57fc Merge #16927 into the merge queue batch
Smart Guides: Ctrl over the selected layer itself measures nothing (#16861)
2026-11-25 13:28:31 +01:00
David Mann e5ef7adfda Merge #16907 into the merge queue batch
Pasteboard menu: remove separator before Select Custom Color… (#16878)
2026-11-25 13:28:31 +01:00
David Mann 50fd48a706 Merge #16533 into the merge queue batch
fix(paint): Color replacement reads and writes through the document's CMYK profile (#11918)
2026-11-25 13:28:30 +01:00
David Mann 73b6140364 Merge #16703 into the merge queue batch
Clone Stamp: validate whole-percent brush edits and explain controls (#12607)
2026-11-25 13:28:30 +01:00
David Mann b3e8b34ff7 Merge #16702 into the merge queue batch
Dodge and Burn: expose brush angle and pressure for size (#12683, #12667)
2026-11-25 13:28:29 +01:00
David Mann ce4f3b87c9 Merge #16689 into the merge queue batch
Direct Selection: consecutive arrow nudges are one "Nudge Path" step (#13204)
2026-11-25 13:28:29 +01:00
David Mann 0a3a4de7af Merge #16451 into the merge queue batch
Adjustment Brush: tint the active adjustment layer's mask with Overlay (#12520)
2026-11-25 13:28:28 +01:00
David Mann 601548579c Merge #16558 into the merge queue batch
fix(retouch): Content-Aware patch fills from surroundings instead of pasting the source (#12118)
2026-11-25 13:28:28 +01:00
David Mann be5a186dc7 Merge #16680 into the merge queue batch
Import Notes: the Notes panel keeps its state, View › Show › Notes turns on (#13918)
2026-11-25 13:28:27 +01:00
David Mann b1e85c01dc Merge #16674 into the merge queue batch
File › Export: a separator above Export Preferences (#13801)
2026-11-25 13:28:27 +01:00
David Mann 2ec0c1eed2 Merge #16670 into the merge queue batch
Sharpen tool options bar: brush Angle field after Strength (#12946)
2026-11-25 13:28:26 +01:00
David Mann b30a4b0bae Merge #16661 into the merge queue batch
Outer Glow: one Range/Size rule for Softer Edge glows (#15871)
2026-11-25 13:28:26 +01:00
David Mann b8eea8463d Merge #15990 into the merge queue batch
Fill and Stroke grey the modes the document can't use (#14647)
2026-11-25 13:28:25 +01:00
David Mann 09a55b4a02 Merge #16010 into the merge queue batch
feat(type-tool): Alt+drag on Vertical Type Mask opens the Paragraph Text Size dialog (#12090)
2026-11-25 13:28:25 +01:00
David Mann ec236094ca Merge #16638 into the merge queue batch
fix(tools): a pattern from an Indexed image keeps painting (#13071)
2026-11-25 13:28:24 +01:00
David Mann 3bd9c0deb0 Merge #16411 into the merge queue batch
Layer Comps to Files: comment in the name, dashes in PNG names, .tif and .jpg (#13940)
2026-11-25 13:28:24 +01:00
David Mann 3cf3766392 Merge #16017 into the merge queue batch
Content-Aware Fill with the whole canvas selected does nothing silently (#14253)
2026-11-25 13:28:23 +01:00
David Mann f53e981b00 Merge #16553 into the merge queue batch
Fix Levels Alt-drag clipping preview state
2026-11-25 13:28:22 +01:00
David Mann 8aaaa73199 Merge #16379 into the merge queue batch
Actions: play and record the Auto-Align Layers step (#14201)
2026-11-25 13:28:22 +01:00
David Mann 77b7358fbf Merge #16200 into the merge queue batch
Modern Brightness at +150 and -150 matches the reference ramps (#14348)
2026-11-25 13:28:21 +01:00
David Mann aca633da34 Merge #15562 into the merge queue batch
feat(droplet): Create Droplet gets the Destination dropdown (#13711)
2026-11-25 13:28:20 +01:00
hnoerenberg fbddf433cf fix(vector): a live Pen draft follows only the steps it minted
sync_live_draft_from_layer asked whether the step the document sits on carries one of the six Pen
step names. That name proves nothing: path.set's pen_history_name (crates/engine-core/src/cmd/
vector_cmds/paths.rs:86-97) matches historyName against the list for ANY caller, so a control-channel,
scripted or panel write that replaces the Work Path under "New Anchor Point" made the Pen believe the
document had moved onto one of its own clicks - and rebuild_live_draft handed the draft the other
caller's anchors, so the next click went on drawing over a path the Pen never drew.

The draft now keeps what it minted: every live write it makes records the History state id that write
produced (History::row_id of the current row, the same id pen_resume pins a finished path by), and the
rule reads those ids instead of the label. History mints the ids and never reuses them, and no command
parameter carries one, so a same-named write cannot forge it. Stepping back to an earlier state keeps
working through can_redo, so Undo, Step Backward and the History panel still move the draft back over
its own clicks, and Redo to the tip still puts the Pen's last click back on the Pen.

Red first: another_caller_cannot_forge_a_pen_step_with_its_history_name draws three anchors, replaces
the Work Path under "New Anchor Point" through app.run, and asks for the draft to be cancelled. At
ebb5365c24 it failed at the cancellation assert - the draft survived, rebuilt over the foreign anchors.
Gates: cargo test -p photocraft-ui-egui -p photocraft -p xtask --lib pen_history_steps 20 passed / 0
failed (redoing_to_the_tip_of_a_live_path_puts_its_click_back_on_the_pen included), --lib
pen_path_ownership 17 / 0, --lib vector 274 / 0, --lib ::pen 153 / 0, and the new test alone with
-- --exact 1 / 0; cargo fmt -p photocraft-ui-egui -- --check clean; cargo clippy
-p photocraft-ui-egui --all-targets -- -D warnings Finished; cargo check -p photocraft-ui-egui
--target wasm32-unknown-unknown Finished; cargo xtask layers OK (30 crates); cargo xtask
panel-commands OK.
2026-11-25 13:11:00 +01:00
qvest-ssels fca3fba909 Commit Free Transform's Rotate and Flip presets on whole pixels
Rotate 90 and 180 degrees inside Free Transform turn the box with sine and cosine, which leaves float noise (about 1e-13 px) on corners that belong on the pixel grid. The commit passed that quad to edit.transform as is, and the warp gave the layer an extra empty column or row: 201 x 300 at 149,50 instead of 200 x 300 at 150,50 for Rotate 90 CCW, 301 x 201 at 99,100 for Rotate 180. The commit now rounds a box corner to the whole pixel when it is within 1e-9 px of it, so the presets match the direct Edit > Transform commands; a real sub-pixel move keeps its fraction. Fixes #16759.
2026-11-25 12:13:49 +01:00
hnoerenberg 8eea05e2ba test(dialogs): drive the Calculations preview row through the control channel
`automation_sets_the_preview_box` wrote the `preview` field through the
dialog host method directly. Going through `ui.dialog.set` instead runs
the same entry a script takes in the live app, so the test proves the
automation half of the Preview box as the user of the control channel
uses it.

Refs #14530
2026-11-25 11:22:35 +01:00
hnoerenberg a5fac14ae0 feat(dialogs): the Calculations dialog previews its result channel in grey
The reference application shows what Calculations will produce while the
dialog is open: a Preview check box, on by default and keyed to Alt+P,
paints the result channel as a grey image over the whole canvas, and
every field change redraws it. Until now the canvas kept showing the
unchanged image until OK.

The form is a hosted parameter dialog, so the check box and its state
come from the framework's own Preview half (`previews(true)`): captioned,
starting on, read and written as the `preview` field for automation. The
command itself only adds a channel, so the post-OK document composites
exactly as before and cannot be the picture; the canvas preview instead
runs the same dialog values through the same engine as the New Document
result, whose one-layer grayscale document is the grey rendering of the
result channel, and the existing filter-preview pipeline draws it over
the canvas at the document's proxy factor. Nothing is written: the run
happens in a scratch session, so Cancel leaves the document, its channels
and its history untouched, and OK stays the single "Calculations" step
with exactly the values the preview showed. The pinned framework draws
the box but keys no shortcut to it, so Alt+P is bound app-side, consumed
in the canvas pass that feeds the preview.

Fixes #14530
2026-11-25 10:24:14 +01:00
RickiNano d9bc2715a7 Review fix (#16861): check the selection change at the same pointer pixel
The cache check queried other pixels first, so a pixel mismatch alone
forced recomputation. Change the selection while the pointer stays over B.
2026-11-25 09:10:05 +01:00
RickiNano 6df7af89df Smart Guides: Ctrl over the selected layer itself measures nothing (#16861)
Holding Ctrl over the selection (or a layer in a selected group) with
the Move tool used to fall back to the canvas-edge distances. It now
draws nothing; empty canvas and the Background still measure to the
canvas edges.
2026-11-25 08:35:40 +01:00
RickiNano baea3f6ef8 Layer Comps to Files: a part that fits keeps its trailing space (#13940)
`clip_bytes` trimmed trailing spaces even when it didn't cut anything,
so a sanitized prefix such as `A ` (from `A .`) lost its space in a
short file name. It now returns a part that fits unchanged and trims
only the end a cut leaves.
2026-11-25 07:28:31 +01:00
RickiNano 580011e93e Actions: play the Auto-Align step in the full app's session (#14201)
Engine split step 8 moved Auto-Align Layers to engine-vector, so the
playback and Undo test in engine-core built a session where
`edit.autoAlignLayers` isn't registered, and no longer exercised the
real command. It moves to the engine integration tests
(`atn_auto_align_play.rs`), where `Session::new()` installs every crate's
commands, and now also checks that playing the step adds one history
state. The import and export tests stay in engine-core.
2026-11-25 07:24:53 +01:00
RickiNano 3fc42fdab2 Layer Comps to Files: a cut part leaves out the parts after it (#13940)
When a part of the file name was cut, the bytes left over (less than one
character of it) could still hold a later, lower-priority part: a cut
comp name could lose its last character while a one-letter comment
stayed. Now a cut prefix leaves out the name and comment, and a cut
name leaves out the comment.
2026-11-25 07:24:40 +01:00
RickiNano 5bc0153391 Layer Comps to Files: a long comment is shortened, not a failed export (#13940)
The comp comment is appended to the file name, and nothing limited the
length, so a comment of a few sentences gave a name past the 255-byte
file name limit and the save stopped the whole export at that comp.

`comp_file_name` now builds `<prefix>_<index>_<name>[_<comment>].<ext>`
within 255 bytes (which also keeps it within Windows' 255 UTF-16 units).
A name that doesn't fit loses the end of its comment first, the whole
comment with its `_` when none of it fits, then of the comp name, then
of the prefix. The index and extension always stay, and every cut falls
between characters.

The new test exports a comp with a six-sentence comment (with umlauts)
and the comp after it, as PNG and TIFF; without the change the export
fails at the first comp. The names tests now export into a folder per
run, so the PNG tests no longer share one.
2026-11-25 07:16:04 +01:00
RickiNano b1100518a1 Modern Brightness: each input rises with the slider up to ±150 (#14348)
Past +110 the curve mixed the slider's own roll-off with the fixed +150
fit. The power roll-offs come closer to white than that fit past about
input 220, so the mix fell there as the slider neared +150: input 200
gave 253.55 at +134 and 253.32 at +150.

The ease now starts at +109.5, the last Hermite roll-off, which stays at
or below the +150 fit everywhere, and mixes from the roll-off held at or
below the fit. Both parts of the mix then rise with the slider, and the
curve reaches the +150 fit itself at +150, so the measured ramps are
unchanged.

The new test steps the slider one unit at a time from ±100 to ±150 and
checks every 8-bit input; it fails on the previous curve.
2026-11-25 07:06:51 +01:00
aiongg a39646d494 Merge branch 'main' into fix/cmyk-vector-shape-paint 2026-11-24 22:30:12 -05:00
NaufalDzzandOpenBot 2131330710 Pasteboard menu: remove separator before Select Custom Color… (#16878)
Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
2026-11-25 02:20:41 +00:00
David MannandClaude Opus 5.5 3e094078e6 Pen shape-mode tests read the number before the unit next adds to a field's accessible value
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 03:17:04 +01:00
David MannandClaude Opus 5.5 2f9362d241 Move craft-libs to storytold next 3656e8aaa4 (dock-gap fixes, storytold/craft-libs#3383, #3360, #3058, #3086, #3212)
On that pin DockAreaOutput.window_files is grouped per window; the files dropped on a floating panel's window are
flattened before they open (as aiongg/photocraft@54911df7f5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 03:11:59 +01:00
hnoerenberg 98e31bc19d The droplet destination tests clean up their fixture folders
The `tmp` helper built its folder under the OS temp directory named
`photocraft-droplet-dest-<pid>-<name>` and only removed it at the start
of the next run, so every test run that did not reach the same name
again left its fixtures behind. The sibling droplet_play_options_tests.rs
already uses `tempfile::tempdir()` (engine-core has the tempfile dev
dependency); `tmp` now hands back the `TempDir` beside the path and each
test holds it, so the fixture goes when the test ends, panicked or not.
Paths are derived from the temp folder; no assertion reads the old
naming.
2026-11-25 03:07:18 +01:00
superplay2021 ffe41a5dc5 fix(cmyk): discard invisible ink before dropping alpha 2026-11-25 03:51:55 +02:00
David Mann 3e3831ab41 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-25 02:29:05 +01:00
David MannandClaude Opus 5.5 b76d2a12b4 i18n tests: the drawn File title starts with the translation, with the access key after it on next
On craft-libs next the app's menu bar draws the English access key after a translated title where the language
shows one ("ファイル(F)", storytold/craft-libs#3364), while the bare menu bar the tests read the reference from
draws the translation alone. The live tests look for a drawn title that starts with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 02:28:56 +01:00
superplay2021 492cbae90b fix(cmyk): preserve native CMYK in vector shape fills and strokes 2026-11-25 03:13:59 +02:00
David MannandClaude Opus 5.5 2af203280a Review fixes: a held corner widget is no snap target; a pasted CRLF moves the caret by one
- pressed_layers also leaves out the shapes a held corner widget rounds: the widgets show without the scale box
  (Target Path hidden, the Move tool) and beside other layers in a mixed selection.
- The type editor counts inserted text as the engine stores it (a CRLF pair is one line break), for the caret and
  the count it reports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 01:45:04 +01:00