Commit Graph
16946 Commits
Author SHA1 Message Date
qvest-ssels d74a2937bd Merge main into fix/red-eye-outside-selection-silent-13096 2026-11-27 08:51:36 +01:00
qvest-ssels ce2ed9b117 Merge main into fix/gradient-overlay-factory-defaults-14900
# Conflicts:
#	crates/engine-core/src/layer_style.rs
#	crates/engine-core/src/layer_style/gradient_overlay_defaults_tests.rs
2026-11-27 08:51:24 +01:00
hnoerenberg 0a031b9393 fix(ui): the Paint Bucket's layer refusals open alerts (#12537)
A Paint Bucket click on a hidden target layer, a layer with Lock image
pixels or Lock all, or with a group active filled nothing (right), but the
first two said so only in the status bar and the group used the shared
group sentence. The reference application opens a modal alert with OK for
each and changes nothing.

Naming the tool in brush_refusal::tool_name and counting Lock image pixels
for the Paint Bucket in locked() routes all three through the press-time
alert that press_refused already asks before the status bar and before
refuse_group, so the group case speaks once and in its measured words. No
new wording: the sentences are the house HIDDEN/LOCKED/GROUP constants the
Brush, Magic Eraser, Burn and Healing Brush items merged, and the tool
name is tl!("paint bucket") like tl!("burn tool").

The bucket click itself is untouched: a hidden, locked or group target adds
no pixels and no History state, a visible unlocked layer still fills, a
pixel layer inside a group fills, Lock transparency and Lock position still
fill, and the group's targeted mask keeps today's exact output. Two tests
that pinned the bucket's old status-bar rule (hidden_layer_tests,
paint_tool/tests) are re-pinned to the alert, each keeping its rest.

New tests: paint_bucket_refusal_alerts_tests.rs, 11 tests; 5 of them fail
on unmodified main (the three measured refusals, the nested-group
neighbour, and the ui.inspect dialogs round trip).
2026-11-27 07:55:52 +01:00
yoriswind b187c73c7c test(ui): expect plain unrecognized alerts for Smart Object opens 2026-11-26 22:40:02 -08:00
aiongg b4219e6c52 Merge fw365-f3-pc (21afd93eb6) into fw365-int-pc: shell slots as keyed views 2026-11-27 06:18:12 +00:00
yoriswind fd3afcbfc0 test(ui): assert modal alerts for failed window drops 2026-11-26 22:16:38 -08:00
qvest-ssels 899cc4c081 Merge main into fix/auto-align-dialog-layout-14196
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
#	crates/ui-egui/src/dialogs/filter_dialog.rs
2026-11-27 07:04:43 +01:00
qvest-ssels 8100457cd5 Merge main into fix/line-tool-wh-fields-13250
# Conflicts:
#	crates/engine-core/src/cmd/vector_cmds.rs
#	crates/ui-egui/src/tools/shape_options.rs
2026-11-27 07:03:44 +01:00
qvest-ssels f8ec532dcc Merge main into fix/undo-restores-channel-target-14683
# Conflicts:
#	crates/engine-core/src/cmd/channel_cmds.rs
#	crates/engine-core/src/cmd/channel_cmds/undo_channel_target_tests.rs
#	crates/engine-core/src/cmd/channel_cmds/view.rs
2026-11-27 07:02:26 +01:00
qvest-ssels 3e59fbae77 Merge main into fix/dodge-32bit-linear-12687
# Conflicts:
#	crates/engine-paint/src/cmd/retouch_cmds/dodge_32bit_linear_tests.rs
2026-11-27 07:01:46 +01:00
qvest-ssels 4ce5233a95 Merge main into fix/burn-32bit-linear-12674
# Conflicts:
#	crates/engine-paint/src/cmd/retouch_cmds/burn_32bit_linear_tests.rs
#	crates/engine-paint/src/cmd/retouch_cmds/dodge_32bit_linear_tests.rs
2026-11-27 07:01:38 +01:00
qvest-ssels bae76cf3d8 Merge main into fix/artboard-from-layers-size-range-14577
# Conflicts:
#	crates/engine-core/src/cmd/artboard_cmds/from_layers_size_range_tests.rs
2026-11-27 07:01:16 +01:00
yoriswind 7127634bce test(ui): target maintained recent-file accessibility names 2026-11-26 21:38:01 -08:00
qvest-ssels 5a67dc1b6d Merge main into fix/paint-bucket-options-fields-12533
# Conflicts:
#	crates/ui-egui/src/lib.rs
2026-11-27 06:18:53 +01:00
qvest-ssels 7d0e773e61 Merge main into feat/apply-image-mask-group-14489
# Conflicts:
#	crates/ui-egui/src/menus/view_cmds/dialogs.rs
2026-11-27 06:12:49 +01:00
aiongg c25832842a SampleAllLayers::get takes self without mut (FW-365 F6b warning) 2026-11-27 03:48:34 +00:00
yoriswind a5862ce07b Integrate current Smudge options with its pressure control 2026-11-26 19:36:57 -08:00
aiongg 21afd93eb6 Title, options and status bars as the shell's versioned slots (FW-365 F3)
The shell keys each slot by its region version: title_bar, options_bar
and a new status_bar version. TitleSlot and OptionsSlot go; the status
bar keeps its body and trailing views inside its slot. Trials tell the
shell's slot views apart by id in the shell's order.
2026-11-27 03:31:12 +00:00
yoriswind afbb82c625 Separate memory-approval regression scenarios from their assertions 2026-11-26 19:26:49 -08:00
aiongg ef9f9ca9e1 Merge fw365-f6b (56bf471c4a) into fw365-int-pc
Conflicts:
- Cargo.lock: kept photocraft#17149's lock. F6's a5e476b933 committed a lock the local patch file had rewritten.
- panels/region_versions.rs (no textual conflict): F6b deleted `serialized`, which F4's canvas version still uses for
  the UI state that has no `Hash`. `serialized` stays; the canvas version reads the tool options through their
  revision instead of serializing them.
2026-11-27 03:11:37 +00:00
aiongg b1b2763434 Merge fw365-f4-pc (ab20a4d05e) into fw365-int-pc 2026-11-27 03:10:58 +00:00
aiongg b38616cd9f Merge photocraft#17149 (9e7a3c12bb) into fw365-int-pc 2026-11-27 03:10:58 +00:00
yoriswind 8a216ae142 Use current control replies in unreadable-file regressions 2026-11-26 19:09:37 -08:00
aiongg ab20a4d05e text build script reads the manifest dir at run time, so worktrees sharing a target dir find their own fonts 2026-11-27 02:25:46 +00:00
aiongg dd80e7099a Canvas: press-state reads that a pointer move leaves alone (FW-365 F4)
The vector tools' drain after every canvas run read `pointer::frame` only for the buttons held and the release, and
the type transform box read it for the modifiers and the press. Both noted the pointer, so any pointer move ran the
document area. They read `pointer::press_state` and `pointer::mods`, which only a press, a release or a modifier
change moves. The pointer-over-panel trial stays held back: two craft-ui-canvas reads (the tool host, the middle-button
autoscroll) still note the pointer on every canvas run.
2026-11-27 02:24:49 +00:00
yoriswind ce8c75f33d Integrate current upstream SDK with unreadable-file acknowledgement repair 2026-11-26 17:58:41 -08:00
yoriswind d29315ea7d Drain per-file alert acknowledgements by instance-aware dialog type 2026-11-26 17:52:23 -08:00
aiongg 56bf471c4a Options-bar and tool writes bump the tool options' revision only when they change a value (FW-365 F6b) 2026-11-27 01:21:44 +00:00
aiongg da8339acf8 Document area: a memoized view keyed by the canvas version, with its per-pass work before it (FW-365 F4a)
The tabs and documents run only when what they show changes or input reaches them, and the dock's tree replays with
them (DockPanels::content returns the same version). The work every pass needs (GPU documents and budget, Content-Aware
Scale, background redraw blocks, tablet settings, a pending crop, a stale Properties eyedropper) runs before the view.
Landed redraw blocks, dialog previews, queued view commands, the crop frame and the open dialog are in the version; a
canvas run that waits for its own work asks for its next pass through the framework. Canvas code reads the modifiers
through pointer::mods, and the task bars report the rect of the last canvas run that drew them.
2026-11-27 01:20:11 +00:00
yoriswind 2b336ac9ef Format unreadable-file alert integration 2026-11-26 17:15:30 -08:00
aiongg 02c84a6f94 Tool options carry a revision: the options bar's version reads it, serialized() is gone (FW-365 F6b) 2026-11-27 01:05:03 +00:00
aiongg 9de8092976 perf(ui): the dock keys its columns by the panels' versions
The dock shows each column as a memoized view keyed by the versions of the
panels it shows (craft-libs DockPanels::content): every panel returns its
region version, the toolbar a version of its rail (the slots and tool in
the preferences, the remembered group tools, the Edit Toolbar drawer and
the footer). The canvas has no version yet, so the docked tree it sits in
runs every pass while the columns beside it replay.

The chrome settle trials count the dock's inner views (tab rows, column
bars, panel bodies, the toolbar footer) as run or replayed only where their
column runs; at rest they replay inside the column's view, so the trials
assert that nothing ran and the column views replayed.

Needs the craft-libs pin moved to a commit with the dock's column views.
2026-11-27 01:00:11 +00:00
David Mann 702da02787 Merge queue batch #17136: #14621, #15962, #17117
Merge queue batch: 3 PRs (#14621, #15962, #17117)
2026-11-27 01:49:55 +01:00
aiongg 7c937ffa41 Panel layout and Color panel options are remembered without moving the settings revision (FW-365 F6) 2026-11-27 00:42:19 +00:00
aiongg a5e476b933 Status bar binds the zoom alone; what the app remembers in preferences moves no region's version (FW-365 F6) 2026-11-27 00:40:21 +00:00
aiongg bd89c1147c Options bar keyed by the view fields its tool shows; status bar keyed by zoom alone (FW-365 F6) 2026-11-27 00:20:25 +00:00
yoriswind ebd9a98e01 Merge current main and port unreadable-file alerts to typed dialogs 2026-11-26 16:19:01 -08:00
David Mann 321c383171 Merge #17117 into the merge queue batch
Color Settings: Blend Text Colors Using Gamma is a checkbox with a 1.00–3.00 field
2026-11-27 00:59:34 +01:00
David Mann 2d2c6ce5a2 Merge #15962 into the merge queue batch
fix(ui): the Healing Brush's refusals are the reference application's alerts (#12111)
2026-11-27 00:59:34 +01:00
David Mann 294fbe3351 Merge #14621 into the merge queue batch
Correct Calculations Gray values for default RGB composites
2026-11-27 00:59:33 +01:00
David Mann 9e7a3c12bb Merge remote-tracking branch 'origin/main' into perf/pointer-move-gate-17148 2026-11-27 00:58:27 +01:00
David Mann 1975f8f1f7 Merge pull request #17143 from davidmann4/perf/toolbar-footer-memo-15493
perf(ui): faster frames: Windows allocator, view commands, Layers header (#17141, #17142)
2026-11-27 00:58:07 +01:00
hnoerenberg a438a96675 test(retouch,ui): pin the Replace rim, widen its exact disc, and test the dropdown pick (#12101)
Review round one: a hardness-50 dab pins that Replace at partial coverage composites the
source through the coverage (strictly between ground and source at the rim, exact copy at the
centre); the bit-exact loop widens to the full-coverage disc of the 20 px hard tip, measured at
221 pixels (pixel-centre distance under 9 of the 10 px radius); and the options bar dropdown
route is now click-tested end to end: open Mode, pick Replace, the stroke would send
mode:"replace" and no History step is added, pick Multiply and Replace is left.
2026-11-27 00:43:55 +01:00
David MannandClaude Opus 5.5 b8304c6d5d build: craft-libs at storytold/craft-libs#3801's head (egui_fork::REV matches the egui pin)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 00:42:09 +01:00
David MannandClaude Opus 5.5 951cfadeeb perf(ui): a pointer move that changes nothing under the pointer runs no frame (#17148)
PhotoCraft turns on the framework's pointer-move gate
(storytold/craft-libs#3801, storytold/egui#65): a move with no button held
runs a frame only when what lies under the pointer changes, a drag runs, or
the pointer is over a canvas, which follows the pointer (its cursor, the
rulers' marks, the readouts). craft-libs and egui are pinned at those PRs'
heads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 00:27:41 +01:00
qvest-ssels ab2c75f621 Color Settings: only a legacy blendTextGamma of 1 loads as the box off
Settings saved before the checkbox (#14243) held one number, with 1 meaning off. Any number up to 1
loaded as the box off with 1.45, so a hand-edited 0.5 was silently replaced and not reported. Only
exactly 1 is the off sentinel now; a smaller number is reported as an invalid preference and loads
as 1.45 with the box on, as an out-of-range value in the new format does.
2026-11-26 23:47:29 +01:00
hnoerenberg 1f486fbc1c style: rustfmt on the new #12101 test files 2026-11-26 22:56:22 +01:00
hnoerenberg 5cb23ca42a feat(ui): the Healing Brush Mode menus gain Replace and the reference's rules (#12101)
Both measured menus, options bar dropdown and Shift+right-click, now list
Normal, Replace, a rule, Multiply, Screen, Darken, Lighten, a rule, Color,
Luminosity. Replace is a Healing Brush tool option, like the painting tools'
Clear flags: picking it runs no command and adds no History step, and the
stroke params carry mode:"replace" to the engine commit this branch adds. The
seven blend modes, their keyboard letters, the step cycle and Reset Tool keep
their meanings; the new option resets with the Healing Brush.
2026-11-26 22:55:35 +01:00
hnoerenberg de75f47644 feat(retouch): paint.healingBrush accepts mode "replace" as a straight source copy (#12101)
The Healing Brush's Replace row, measured in the reference application: the
stroke copies the source pixels with no healing solve, composited through
Normal. `blend_param` accepts the exact word "replace" for `paint.healingBrush`
alone, so the live stroke parser starts too (its texture preview already draws
what Replace commits); every other command keeps refusing it, and an unknown
mode string stays an error. `healing_brush` reads the word from the params and
paints the sampled source region as it stands: the Normal and other modes run
the unchanged solve path, pinned pixel-for-pixel by the tests.
2026-11-26 22:29:42 +01:00
hnoerenberg 752d83c078 test(retouch): the Healing Brush Replace stroke copies its source exactly (#12101)
Red: `paint.healingBrush {"mode":"replace"}` is refused today ("unknown blend
mode `replace`"). The new file pins what the ticket measures: every pixel the
hard tip covers fully equals the source pixel mapped there, bit for bit, taken
from the document state before the stroke; Normal's healed pixels are pinned
byte for byte; an unknown mode string stays an error; and one Replace stroke
is one History step named "Healing Brush".
2026-11-26 22:28:42 +01:00