* Use fixed scratch volume capacity in engine unit tests
* Test fixed scratch capacity during preference setup
---------
Co-authored-by: FredApps <[email protected]>
* Use typed blend modes in Layers menu
* Cache translated UI menu entries
* Cache translated panel names
* Simplify language cache types
* Name cached footer menu type
---------
Co-authored-by: FredApps <[email protected]>
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)
* AGENTS.md: correct the repository facts
Correct the layer list (no psd or codecs crate; ipp, raw and tablet are standalone; test helper crates), name the example plug-in that uses unsafe, and renumber a stale rule reference in docs/contributing.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
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.
Keep Color Replacement tolerance dispatch from main alongside Magic Eraser opacity. Reconcile both isolation fixtures against the combined supported tool behavior without dropping checks.
Preserve the Channel Mixer rounding regression alongside main Color Balance coverage. Source and whitespace checks passed; hosted CI will validate the integrated tree.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
With a given edit running only the regions without a content version, each
version must hold every value another region, or the canvas, can change while no
command runs. An audit of the given-value landings found:
- the type defaults: with no type target, a size, font or other choice in the
Character or Paragraph panel sets the Type tool's defaults, which the options
bar shows, and the options bar's choices show in the panels;
- the foreground, which the Character panel shows as the colour of new type;
- the open Free Transform, Puppet Warp and Perspective Warp: a box, pin or plane
dragged on the canvas changes what the options bar shows;
- the Histogram's adjustment preview, which moves with every Properties slider
move and every Image > Adjustments change until the release.
Each joins the versions of the regions that show it. The Histogram lands its
counts through the framework's timed repaint, which runs the panel again: a
worker thread cannot wake one settled region.
A dialog closed with Escape runs no command, so the title bar replayed the run
made while the dialog held the keys, with no menu bar registered, and F10, Alt and
Alt+letter did nothing until a command ran. The version holds the menu gate's
modal and recording facts.
The chrome trials also check the other side: a new language, a hidden toolbar
slot and an unsaved edit each run the chrome in the next frame, Alt+F opens the
File menu after a dialog closes with Escape, and a maximized window shows Restore.
RESAMPLE_CHOICES hands the framework Resample::PreserveDetails, and options_of
and settings_from map it to and from preserveDetails. The kittest
the_dialog_offers_preserve_details_and_it_sets_preserve_details opens the
framework dialog, picks Preserve Details from Resample and reads the settings;
it fails without the change (the choice is not offered).
The command sources' states sit in one held Tracked<CommandStates>, written only when a source's
list changes, so an idle frame moves no revision and the runtime reads nothing. The gate is a fn of
props (the menu gate, the modal rules and the refused commands), so the runtime asks it again only
when they change.
Every craft-libs git dependency (craft-psd, craft-svg and craft-ipp included) and the vendored
hayro, krilla and linesweeper patches take one rev, and egui follows the rev craft-libs next pins.