Commit Graph
15537 Commits
Author SHA1 Message Date
FredAppsandFredApps 4fd58daa82 Use fixed scratch volume capacity in engine unit tests (#15794)
* Use fixed scratch volume capacity in engine unit tests

* Test fixed scratch capacity during preference setup

---------

Co-authored-by: FredApps <[email protected]>
2026-11-20 18:11:33 +07:00
FredAppsandFredApps 35aa41448f Cache translated UI menu entries (#15728)
* 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]>
2026-11-20 18:11:23 +07:00
FredAppsandFredApps c2a9ee5f30 Cache UI command and tool lookups (#15715)
* Cache UI command and tool lookups

* Use fast hashing for fixed runtime IDs

---------

Co-authored-by: FredApps <[email protected]>
2026-11-20 18:11:12 +07:00
FredAppsandFredApps 12eb024b79 Limit text conversion to painted rows (#15717)
* Limit text conversion to painted rows

* Remove temporary full-row oracle

---------

Co-authored-by: FredApps <[email protected]>
2026-11-20 18:11:02 +07:00
9ec43e905a Adopt the shared AGENTS.md (RFC-0072) (#15912)
* 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]>
2026-11-20 18:10:25 +07:00
hnoerenberg a1afe4cf51 Merge upstream/main into fix/content-aware-stripes-14191 2026-11-20 11:57:32 +01:00
haranishi 659ee96c51 Sync main for current Windows CI 2026-11-20 19:31:09 +09: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
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 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
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
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 005fc2026f Merge branch 'dock-chrome-settles' into drag-value-lag 2026-11-20 04:30:27 +00:00
aiongg 180dc171ed Region versions hold what other regions change without a command
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.
2026-11-20 04:30:22 +00:00
aiongg f712df8706 The title bar's version holds whether the bar takes the menu keys
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.
2026-11-20 04:30:15 +00:00
aiongg 29e4277964 Merge the tool overlay fix (photocraft#15880) 2026-11-20 04:28:09 +00:00
aiongg 8a145e90a0 Pin craft-libs next with the submenu, overlay and clipboard fixes 2026-11-20 04:25:56 +00:00
Hector Villarreal a298373ba4 Export As offers Preserve Details on main's framework dialog (davidmann4 on #15031)
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).
2026-11-19 21:56:45 -06:00
FredApps 4dc260d9e8 Check Cargo artifact freshness in fixture 2026-11-20 04:51:55 +01:00
aiongg 03754ebb5a ui: the command states and gate on the keyed runtime inputs
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.
2026-11-20 03:47:57 +00:00
aiongg 254b570f14 Pin craft-libs next
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.
2026-11-20 03:47:57 +00:00