Commit Graph
8884 Commits
Author SHA1 Message Date
David Mann d7e2bbe4a4 Merge PR #11077: Layers panel: filter by layer attribute (#10881)
# Conflicts:
#	crates/ui-egui/src/panels/layer_filter_ui.rs
#	docs/control-protocol.md
2026-11-04 14:51:17 +01:00
David Mann aac944a315 Merge PR #11223: Actions: map supported classic Gradient recordings
# Conflicts:
#	crates/engine/tests/it/main.rs
2026-11-04 14:51:00 +01:00
David Mann fd736f7ddc Merge PR #10986: Actions: map recorded Content-Aware Fill settings 2026-11-04 14:50:49 +01:00
David Mann e8bc140aa2 Merge PR #11243: Free Transform: linked layers transform together (#11217) 2026-11-04 14:50:48 +01:00
David Mann a7f34dfa9f Merge PR #11222: Actions: support recorded Type Create Work Path 2026-11-04 14:50:47 +01:00
David Mann 3ea385cef3 Merge PR #11017: Layers filter: fill layers match no Kind button, and the Mode list has no Pass Through (#10878) 2026-11-04 14:50:46 +01:00
David Mann 6a989bacdc Merge PR #11235: Layers panel: applying a filter deselects the layers it hides (#10879) 2026-11-04 14:50:45 +01:00
David Mann 8f9cc7bbf5 Merge PR #10396: Crop: Esc hides the crop frame until the next press (#10370) 2026-11-04 14:50:44 +01:00
FredApps 5617e00ca0 Merge pull request #11168 from hnoerenberg/fix/image-assets-save-errors-11117
fix(ui): a save that failed some Image Assets reports which outputs (#11117)
2026-11-04 14:35:55 +01:00
David Mann 2c68cc6b95 Merge pull request #11203 from davidmann4/integration-batch-15
Integration batch 15: Crop, Free Transform and Actions epic PRs
2026-11-04 14:18:54 +01:00
Josias Eli Rodriguez f1419f6d87 test(review): assert originals keep their group in the paired copy-drag test (#11217) 2026-11-04 07:16:30 -06:00
FredApps be3f632402 test: format save hook regression 2026-11-04 13:58:19 +01:00
FredApps 01ff0e2974 Merge pull request #8705 from the-unknown/feat/lens-flare-look
feat(filters): Lens Flare looks like Photoshop's (SSIM 0.97–0.995 per lens)
2026-11-04 13:56:53 +01:00
Codex 9fdcbf93c2 test: cover asset failure after save script shifts tabs 2026-11-04 13:48:59 +01:00
FredApps ec549530b8 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/app/files.rs
2026-11-04 13:44:14 +01:00
FredApps 66a0853024 Merge pull request #11244 from hnoerenberg/fix/assets-after-script-close-11121
fix(assets): bind post-save generation to the saved document's identity
2026-11-04 13:42:57 +01:00
FredApps 97ba6d16a9 Merge pull request #11189 from hnoerenberg/fix/windows-replace-recovery-11178
fix(atomic): report where the original survives when the Windows restore fails
2026-11-04 13:42:21 +01:00
Hartmut NörenbergandHartmut Nörenberg bf5c479d29 fix(layers): refuse to ungroup the sole empty layer group (#11118) (#11163)
* fix(layers): refuse to ungroup the sole empty layer group (#11118)

* fix(layers): document the ungroup guard and cover the valid empty-group case

Review follow-up: docstring on ungroup() and a control test showing an empty group that has sibling root layers still ungroups (the group simply disappears).

---------

Co-authored-by: Hartmut Nörenberg <[email protected]>
2026-11-04 13:40:06 +01:00
Josias Eli Rodriguez 91189d9244 fix(review): relink copies made by a panel copy-drag (#11217) 2026-11-04 06:30:07 -06:00
Tareq HalabyandFredApps 2472b4a46b PSD: keep stylistic sets in Txt2 for PhotoCraft-native documents (#10313)
* PSD: keep stylistic sets in Txt2 for PhotoCraft-native documents.

needs_txt2 now covers Txt2-only OpenType flags (ss01–ss20 and non-default TXT2_FEATURES). Fresh documents get a framed point-text object with full style runs so Set 1/5 round-trip on save/reopen (#10308).

* Txt2: seed fill colour and font list on PhotoCraft-native blocks.

Fresh style runs get a /53 paint dict, and an empty font list gets a CoolTypeFont entry so index 0 resolves (CodeRabbit on #10313).

* Txt2: tag SimplePaint and ensure numbered /0 on legacy blocks.

CodeRabbit: write /99 /SimplePaint on fresh /53 dicts, and create the numbered resource dictionary before pad_frames when a legacy block lacks it.

* Txt2: treat a missing stylistic-set mask as 0 when comparing styles

A style run without key 85 used to agree with any ssNN mask, so enabling
ss01 could leave the file's runs in place on save. Align with import's
default of 0. Also restore the G8 gaps note after rebasing onto main.

* style(io): rustfmt psd_kerning stylistic-sets test

* Txt2: keep Photoshop /0 stable when seeding fonts and frames

Only seed a CoolTypeFont list and inject /0/8 when the block is
PhotoCraft-native or already had those keys / needs new frames, so
unedited Photoshop Txt2 saves stay byte-identical (#2374).

* style(text): rustfmt oversized-template assert

* PSD: keep the Txt2 scaffolding to PhotoCraft-native blocks

A file's own Txt2 block (any Photoshop era) is written as before: no
numbered /0 or /0/8 frame list is injected, a layer without a template
object gets its stub, a run without /53 isn't given one, and no
minimal style base is used. Only a block PhotoCraft creates itself
(prev.is_none()) gets fresh point-text objects, minimal runs, a seeded
font list and a frame list.

Fresh objects now write one /5 paragraph run per paragraph (UTF-16
lengths, checked conversion), as edited objects are refitted.

Tests: Photoshop blocks with an empty or missing /0 get no native
scaffolding; the oversized-template test is back to main's assertion;
fresh paragraph runs; the PSD round trip checks ss01 and ss05 on every
run.

---------

Co-authored-by: FredApps <[email protected]>
2026-11-04 13:28:06 +01:00
David MannandClaude Opus 5.5 f05bb0ea9b Fix-up for #9979, #9182 and #10837: review findings on the batch
- #9979: ui.dialog.set can no longer rewrite an open field picker's __colorPicker
  marker (its OK went to the Crop shield instead of the field), and Preferences Apply
  waits for an open colour picker as OK does, so it never saves a previewed colour.
  Both have regression tests that fail without the fix.
- #9182: the stress test's PC_BUILD_ROUNDS / PC_BUILDS_PER_DEVICE fall back to the
  default for 0, which ran no builds and passed.
- #10837: the ROADMAP entry no longer says a Latin hint rules windows-1251 out; the
  hint settles a word-initial rare letter and breaks exact ties.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:22:51 +01:00
David MannandClaude Opus 5.5 cbc674ea9a Fix-up for #10837: score legacy names in linear time
The position checks of the codepage guesser (letters after a character, a closing !,
the Cyrillic run around a letter) rescanned the rest of the name from every non-ASCII
character, so a hostile .atn or PSD with a 64 KiB step name of one letter kept Load
Actions busy for about three minutes. Each is now found once per name; the three
measured cases take 0.03 s together, and a regression test covers them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:54:55 +01:00
skylar taylor-barrick 68b6dbfa79 Merge pull request #10750 from RickiNano/perf/bench-cmd-refresh-split
perf(bench): split command and refresh time; refresh like the app; stop rows timing setup
2026-11-04 12:39:54 +01:00
skylar taylor-barrick e88adf20a0 Merge pull request #10921 from RickiNano/fix/show-effect-cache-pref
Preferences: show Effect Cache, which the engine reads (#204)
2026-11-04 12:36:56 +01:00
skylar taylor-barrick db18b9d432 Merge pull request #10802 from RickiNano/fix/props-percent-units
Properties: W/H/X/Y take a typed percentage (#10784)
2026-11-04 12:30:05 +01:00
Tareq HalabyandFredApps 4d0ecd746f Toolbar: Alt/Option-click cycles the flyout tool slot (#10301)
* Toolbar: Alt/Option-click cycles the flyout tool slot.

Matches Photoshop: plain click keeps the shown tool; Alt-click advances through the slot without opening the menu (including tools Shift+letter skips).

* Toolbar: don't fit-on-screen on rapid Alt-clicks through Hand.

Alt-click only cycles the flyout slot; exclude Alt from the Hand/Zoom double-click handlers and cover inactive-slot cycling.

* Toolbar: ignore Hand/Zoom double-click after an Alt-click.

egui pairs a plain click with a prior Alt-click as a double-click; remember the previous click's Alt so fit-on-screen and actual-pixels only run for two plain clicks.

* Toolbar: read click modifiers from the slot's pointer release.

Match DesignCraft/EffectCraft: bind release mods to the tool rect, treat any modifier as blocking Hand/Zoom double-click, and harden the Alt-cycle test by clearing i.modifiers before release.

* Toolbar: cover 1/2/3-tool Alt-click cycles and hidden-tool slots.

Addresses ReviewerA on #10301: next_slot_tool wrap cases for short flyouts, and visible_sections so Edit › Toolbar hidden tools shrink the Alt-click cycle.

* style(ui): rustfmt after rebase onto main

* Toolbar: next_slot_tool never panics on an empty slot

Index with checked arithmetic and get() (house rule: no panics on
input-derived indices); an empty slot returns the current tool. Test
added.

---------

Co-authored-by: FredApps <[email protected]>
2026-11-04 12:29:11 +01:00
qvest-sselsandClaude Opus 5.5 fbe918c8c9 Merge origin/main into fix/crop-esc-hide-frame-10370
Main now hides the frame after a committed crop (`hide_frame` /
`show_frame`, #10642) on the same `dismissed` state this branch added,
and keeps it hidden when the Crop tool is picked again, as measured in
Photoshop. Esc now uses that state: `dismiss` is `cancel` then
`hide_frame`, so after Esc picking the tool again also keeps the frame
hidden, and only a press brings it back. The Esc test follows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:06:27 +01:00
David Mann 16192b6604 Merge PR #11220: Crop: centred 48-point grid while turning 2026-11-04 12:05:48 +01:00
Psychotoxical f44510490f fix(ui): Empty checks an opaque default against the canvas, cached per document (#10881)
A layer with an opaque default pixel is empty when its stored tiles
cover the canvas and are clear on it; parts of the canvas without a
tile show the default. The empty layers are cached per document (a
Weak to it) instead of per revision, which a selection moves too.
Tests: an opaque default erased over the canvas, a selection and a
second document, a hidden group with a visible child.
2026-11-04 10:46:55 +01:00
Psychotoxical f874701bd9 fix(ui): the Empty scan runs on one thread in the browser (#10881)
rayon is a desktop-only dependency of photocraft-ui-egui, so the wasm
build failed. The browser scans the tiles one after another.
2026-11-04 10:13:20 +01:00
Psychotoxical cf1ca93e75 perf(ui): the Empty scan reads alpha bytes in parallel (#10881)
Integer alpha is above 0 where any of its bytes is, so blocks of pixels
are OR-ed together instead of decoding each sample, and tiles are scanned
in parallel. Three completely erased 36 MP layers (release): 87 ms
before, 11 ms after.
2026-11-04 09:49:44 +01:00
Psychotoxical c71677a159 Merge remote-tracking branch 'origin/main' into feat/layer-filter-attribute
# Conflicts:
#	crates/automation/src/server.rs
#	crates/ui-egui/src/control/tests.rs
#	crates/ui-egui/src/panels/layer_filter_ui.rs
#	crates/ui-egui/src/state.rs
#	docs/control-protocol.md
2026-11-04 09:49:44 +01:00
Josias Eli Rodriguez 5d416cf812 test(review): Layer via Copy adds exactly one layer (#11217) 2026-11-04 01:52:00 -06:00
Hamza e85b360248 Merge remote-tracking branch 'origin/main' into fix/layer-filter-kind-and-mode
# Conflicts:
#	crates/ui-egui/src/control/tests.rs
#	crates/ui-egui/src/panels/layer_filter_ui.rs
#	docs/control-protocol.md
2026-11-04 12:48:11 +05:00
Josias Eli Rodriguez f29532f0d3 test(review): Layer via Copy of a linked layer starts unlinked (#11217) 2026-11-04 01:30:29 -06:00
Josias Eli Rodriguez 64cf1678ba fix(review): transforms keep untargeted Backgrounds out, duplicates start outside the source link group, warp guard judges the widened set (#11217) 2026-11-04 01:17:56 -06:00
Hartmut Nörenberg f7f2983f78 fix(assets): bind post-save generation to the saved document's identity
A Save Document script that closes or moves a tab changed the document list between the script event and the Image Assets continuation, which reused a resolved-before index: the saved document's outputs were silently skipped, or a shifted-to index exported another tab's. document_saved now takes the DocId, resolves it only after the script ran, and generates nothing when the script closed the saved document.
2026-11-04 07:36:16 +01:00
Josias Eli Rodriguez 519c0a48e4 fix(transform): linked layers scale and rotate together (#11217) 2026-11-04 00:29:39 -06:00
yoriswind 6855fb68fd Document Type Work Path mapping and regression oracles 2026-11-03 22:06:23 -08:00
NaufalDzz 4fb9866c80 Smart filter rows test: reselect the layer the Name filter deselected (#10879) 2026-11-04 12:58:59 +07:00
yoriswind fdf1f48a1c test(crop): dispose unused CPU texture updates 2026-11-03 21:10:29 -08:00
yoriswind 814c2baf93 test(crop): cover turning grid through canvas paint 2026-11-03 20:31:43 -08:00
NaufalDzz 92e40f9dad Layers panel: applying a filter deselects the layers it hides (#10879)
When the filter is applied or its criteria change while it filters, the
selected layers it no longer lists are deselected, as in Photoshop: through
select.deselectLayers when none stays listed, otherwise the listed ones stay
selected and one of them becomes the active layer. Turning the filter off
changes nothing, and a layer selected later while it is filtered out stays
selected. The criteria last seen are kept in egui memory, so a change made
through ui.set {layerFilter} is handled too.

Fixes #10879
2026-11-04 11:30:01 +07:00
yoriswind 9efa1735ee Select an older text layer in recorded path playback tests 2026-11-03 20:05:36 -08:00
yoriswind 85ecb52b2b Use the painted crop frame for visible guide geometry 2026-11-03 20:01:11 -08:00
yoriswind 98369cfcf0 Remove the unused Gradient integration test import 2026-11-03 19:57:59 -08:00
yoriswind f135134eb3 Accept recorded Gradient descriptor classes and cover boundaries 2026-11-03 19:52:22 -08:00
yoriswind 1f6dd500d9 Merge commit '37a01ca8746c121170644a07968d11263ef64407' into codex/10986-batch14-main 2026-11-03 19:50:30 -08:00
yoriswind 28b53ac6eb Check recorded work paths against the active layer glyphs 2026-11-03 19:46:47 -08:00
yoriswind d68c29b74a Generate crop turning guides for the visible frame extent 2026-11-03 19:40:31 -08:00