Commit Graph
15989 Commits
Author SHA1 Message Date
Dan 2f1f612b56 Keep XML and Run controls clear of each other 2026-11-20 10:20:19 +00:00
Khawar Zamman Wani 4671d84130 Tests: fewer frames per case in the handle and caret-font tests (#15939)
The handle test presses each handle once per case, at the centre or in its
grab area by turns, with a two-move drag; the caret-font test keeps one
caret-at-start case and one caret-at-end case per text.
2026-11-20 15:37:33 +05:30
Dan 7df77e0b94 Use current egui ID constructors for XML settings 2026-11-20 10:01:15 +00:00
Dan ddff72c405 Wire settings buttons into the Image Processor menu form 2026-11-20 10:00:43 +00:00
Dan e399a61719 Use the shared bounded XML reader for settings 2026-11-20 09:52:12 +00:00
Dan aba988ddfb Take the pending settings action from egui memory 2026-11-20 09:47:54 +00:00
Dan 7be0322c1a Save and load Image Processor XML settings 2026-11-20 09:42:08 +00:00
hnoerenberg 900e9bbd02 Merge upstream/main into fix/inner-shadow-size-one-14933
# Conflicts:
#	crates/compose/src/effects.rs
2026-11-20 10:37:46 +01:00
Khawar Zamman Wani 22c43575c5 Tests: run the slow type-tool grids pairwise (#15939)
The paragraph-handle, click, transform-scale and caret-font tests crossed
every axis; each now runs one case per value of its widest axis, pairwise
over the rest, keeping the ends of the range in points.
2026-11-20 14:40:37 +05:30
hnoerenberg 84e48c9630 cargo fmt 2026-11-20 09:45:29 +01:00
hnoerenberg a9c031ee39 Merge upstream/main into fix/rotate-interpolation-pref-14465
# Conflicts:
#	crates/engine/src/cmd/mode_cmds.rs
2026-11-20 09:41:00 +01:00
FredApps 57772ada0c Merge main and reconcile Magic Eraser digit targets
Keep Color Replacement tolerance dispatch from main alongside Magic Eraser opacity. Reconcile both isolation fixtures against the combined supported tool behavior without dropping checks.
2026-11-20 09:36:48 +01:00
FredApps 421cfd0f74 Merge main into Channel Mixer percentage fix
Preserve the Channel Mixer rounding regression alongside main Color Balance coverage. Source and whitespace checks passed; hosted CI will validate the integrated tree.
2026-11-20 09:28:05 +01:00
hnoerenberg d3a1a2aa4c Merge upstream/main into fix/layer-from-bg-name-14821 2026-11-20 09:16:34 +01:00
hnoerenberg 2a5c4041b4 Merge upstream/main into fix/curves-composite-rounding-14446 2026-11-20 09:16:26 +01:00
aiongg d3bed32270 xtask: the scorecard names corpus directories under corpus/, as the corpus tests and pins do 2026-11-20 08:01:19 +00:00
aiongg 6249a2e6b8 docs: refresh the scorecard 2026-11-20 07:34:40 +00:00
aiongg 5351576daf tests: the corpus tests take a fixed sample per directory; the nightly run sweeps every file
The real-file corpus tests the Linux gate runs took up to 394 s each (the psd-tools mutation
sweep), 780 test-s together. Each now walks a fixed sample chosen for coverage (photocraft-testkit
`corpus`: every colour mode and depth, PSD and PSB, the block kinds outside the large files, each
oracle kind, smart objects, vector blocks, type) and stays under a second. PHOTOCRAFT_FULL_SWEEP=1,
the switch the testkit sweeps already read, takes every file; the nightly run sets it.

- Oracles keep floors for the sample next to the full floors.
- The mutation sweep cuts and corrupts each sampled file 12 times instead of 31.
- The layered TIFF test takes the psd-tools sample.
- The smart-object test imports only files with a placed-layer block (full sweep: 32 s to 5 s).
- The blend-mode tests import once and render only the compared cells.
- The 16.8 MP spot-channel file runs in full sweeps only; the generated files check the same reading.
- The #1606 special-shapes test is the affinity table's row for that file plus its warning check.

Part of #15711
2026-11-20 07:23:46 +00:00
hnoerenberg b5110c51a8 Merge upstream/main into fix/color-lookup-dialog-defaults-14422 2026-11-20 08:16:12 +01:00
aiongg 8006f26ba1 Region versions: what bars, panels, keys and the canvas change without a command
A given-value edit no longer reruns versioned regions (craft-libs#2469), so every input a settled
region shows must be in its version. The options bar holds every tool option (keys, the canvas
menu and the task bars write them), its commit cells and lasso hint, and the caret of the type
being edited; Character, Paragraph, Properties and Glyphs hold that caret; Info holds the Sample
Size and the crop frame size; Layers holds the Move tool's canvas rollover; every version holds
the mask, filter mask and path targets. A command a key fires counts as a command run, as one
from a menu does.
2026-11-20 07:11:55 +00:00
rmsff bab27ebf30 Test the Quick Selection refusal in Indexed Color and Bitmap 2026-11-20 10:11:11 +03:00
rmsff 3946436c63 Quick Selection: refuse Indexed Color and Bitmap documents
The reference application refuses a Quick Selection click or drag there
with an alert and selects nothing. select.quick now returns its words,
and the canvas shows them in the OK alert without running the command.
Multichannel and Duotone weren't measured and keep selecting.
2026-11-20 10:11:11 +03:00
rmsff 2cf25cd03a Test the Object Selection nothing-found alert and silent click 2026-11-20 10:11:03 +03:00
rmsff 038e4e9bb8 Object Selection: alert when a rectangle finds nothing, silent click
A rectangle that finds nothing opens the reference application's "Couldn't find an object to select" alert with "Don't show again" instead of a status-bar hint. Over an area where the sampled layer has no pixels it still records an "Object Selection" History state (select.object "recordEmptyArea"); scripts keep the #5246 error. A click that finds nothing shows no message.
2026-11-20 10:10:55 +03:00
rmsff cafc4264c0 Lens Correction batch: test the dialog defaults and file types 2026-11-20 10:10:46 +03:00
rmsff 4e446f9c0d Lens Correction batch: open with the reference defaults and file types
The dialog now opens with Chromatic Aberration and Vignette off and
File Type PSD, and File Type offers JPG, PNG, PSD and TIFF, as the
reference application does. The command's own defaults for scripts and
the CLI are unchanged.
2026-11-20 10:10:46 +03:00
rmsff 4159a8a86c Lens Correction batch: test the dialog layout
Group order, captions, the two Correction Options columns, the Edge entries
and their stored values, no Alt Reset, Escape cancels, Browse... and
Choose... pick the folders, a field set to null shows and sends its default,
and OK runs the command with the params the generic form sent. The harness
helpers are pub(super) for the other dialog items of #13978.
2026-11-20 10:10:46 +03:00
rmsff be9f00969f Lens Correction batch: four groups like the reference dialog
File > Automate > Lens Correction opened the generic form, which lists the
params A to Z (Auto scale, Correct c a, ... Profile). The dialog now draws
the reference groups Source Files, Destination Folder, Lens Correction
Profile and Correction Options, the last in two columns, with the reference
captions and the Edge entries Edge Extension, Transparency, Black Color,
White Color. Holding Alt leaves Cancel as Cancel. The command's params and
its defaults in the menu arm are unchanged; a missing or mistyped field is
set to its default before drawing, so the dialog shows what OK sends.
2026-11-20 10:10:46 +03:00
rmsff deaf013d42 Test the Conditional Mode Change source and target controls 2026-11-20 10:10:37 +03:00
rmsff 6f87f89614 Conditional Mode Change: Source Mode checkboxes with All / None and full mode names
The dialog was the generic form with one From dropdown (a single mode or Any)
and raw ids. It now ticks any set of the eight source modes, in two columns
with All and None, and lists the targets as Grayscale, RGB Color, CMYK Color
and Lab Color. OK sends the ticked modes as the command's from list.
2026-11-20 10:10:37 +03:00
haranishi 0c168a4243 Merge main with the corrected paint test fixtures 2026-11-20 16:01:06 +09:00
haranishi 982ccf0fa1 Merge main with the corrected paint test fixtures 2026-11-20 16:00:15 +09:00
Khawar Zamman Wani bdacd76af0 Object Selection gear tests: the boxed app and the borrows of the new update signature 2026-11-20 12:29:57 +05:30
aiongg c84fe81c41 Options bar: the Crop tool's options and frame state are in its content version
The crop task bar's preset list and Straighten, the tool's keys and a frame drag change what the
options bar's Crop members show without a command. A given-value edit no longer reruns versioned
regions (craft-libs#2469), so the bar replayed the old preset after a pick in the task bar.
2026-11-20 06:54:12 +00:00
hnoerenberg 8c8eb049bb test(type): stop calling a red mask style test a guard
`a_mask_takes_no_other_character_settings_from_the_layer` is red without this
change - its last line names the font, style and size the takeover moves over -
but its doc comment called it a guard test that passes before and after. The
comment now says which it is; the PR text names the five tests that really are
guards.
2026-11-20 07:06:13 +01:00
hnoerenberg d890b19ece fix(type): keep a non-finite layer size out of the mask's create params
`mask_style_from_active_layer` built the size with `json!` and only then asked
`finite_style_value` about it. `json!` turns a non-finite f32 into `null` and
`finite_style_value` accepts `null`, so `type.create` received `"size": null`,
its `check_size_tracking` refused the whole parameter set, and the
`if let Ok(v)` in `create_text` passed the error over: a Horizontal Type Mask
click over a document whose active text layer carries a NaN or an infinite size
did nothing at all.

Gate the f32 product with `is_finite()` and only then make it JSON, so such a
layer keeps the tool's own size and the mask still starts. Pinned by
`a_non_finite_layer_size_keeps_the_tool_size`, red before this commit
("a new mask session at (60.0, 300.0)").
2026-11-20 07:06:05 +01:00
aiongg 01ffcd522b Pin craft-libs next with the drag fixes; whole-app drag trial 2026-11-20 06:04:34 +00:00
aiongg 95b3a93003 Merge the drag lag fixes (photocraft#15867) 2026-11-20 06:04:05 +00:00
aiongg 28b593b038 Add Anchor Point: a drag from a segment pulls out the new anchor's handles in one step (#12707) 2026-11-20 05:37:23 +00:00
Khawar Zamman Wani cc78c7701b Merge main: Object Selection Refresh and gear on the craft options bar 2026-11-20 11:02:10 +05:30
Khawar Zamman Wani fc16bdbe5e Merge main: the Vertical Type pointer on the craft tool host 2026-11-20 10:58:36 +05:30
aiongg 25db50e9e2 ui: module order for rustfmt 2026-11-20 05:19:13 +00:00
Dan 7d1c4c6688 Merge main and preserve guides during exact Arbitrary turns
Keep the guides transformed by the exact turn when Image Rotation requests them. Crop and Ruler Straighten still clear guides. Check guide positions, colours and undo through the rotation commands.
2026-11-20 05:08:06 +00:00
hnoerenberg 821e1bf576 Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-20 05:55:15 +01:00
aiongg d110e35a0f xtask: the corpus build switch is an option, so the unit tests do not depend on the gate's environment
Part of #15711
2026-11-20 04:52:54 +00:00
hnoerenberg b84775b5f4 fix(type): a new Type Mask takes the active text layer's style
A Type Mask click built its working text layer from the tool options
alone, so an 80 pt text layer active on the canvas made a 48 pt mask.
The measured case now reads the active layer's font, style and size as
the options bar shows them; the vertical mask, a paragraph drag and a
non-text active layer keep today's tool options.

Refs #12077
2026-11-20 05:52:17 +01:00
Khawar Zamman Wani 2099ce77b6 Merge main into fix/12909-pen-shape-first-click 2026-11-20 10:21:42 +05:30
aiongg a75d5c52df Chrome trials: a slot taken off the rail, and a language only with catalogs
Hiding one tool of a slot leaves the slot on the rail, so the toolbar case hides
both tools of the first slot. A build without the catalogs shows English only, so
the language case runs only where they are embedded. The maximize case is gone:
the test harness draws no caption buttons.
2026-11-20 04:51:14 +00:00
hnoerenberg f8c4965e20 fix(type): Ctrl shows the transform box over a Type Mask session
A Type Mask keeps its text on a hidden working layer, and type_transform's
frame() refused invisible layers, so holding Ctrl over a mask edit showed no
box and Ctrl+drag did nothing. frame() now lets a mask session through while
the modifier is held; the box's session applies its result as one type.edit,
which the commit turns into the moved selection. Invisible ordinary layers
keep the refusal, and without the modifier the mask session keeps today's
behaviour: no frame, so no box and no move reach either.

Red first: 2 new tests failed before the fix; all 4 pass with it.
2026-11-20 05:37:49 +01:00
aiongg ff61830706 ci: rust-channel at its merged commit; the corpus job goes
The gate's shards run the corpus tests.

Part of #15711
2026-11-20 04:35:07 +00:00