A click on a set's folder row selects the set but also toggles it, so an
expanded set ends up collapsed; New Action or Start Recording then made the
action inside the collapsed set, hiding it and its recorded steps.
begin_recording now expands the recorded action's set, as Photoshop shows
the new action while it records.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A click on a set's folder row clears the selected action, so Save Actions…
fell back to the first action's set and could save another set. It now saves
the selected set when no action is selected, and keeps the first action's set
as the fallback when neither is selected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a set's folder row selected and no action, Begin recording and Start
Recording had nothing to append to and recorded a new action outside any set.
They now record a new action into the selected set, as New Action does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under W and H, while the Crop tool shows a frame, a Ratio line gives the
frame's aspect: reduced to whole numbers when both are small (4:3, 16:9,
4:5), else a decimal against 1 on the short side (1.413:1, 1:1.505), so
a photo's ratio can be matched as #3145 asks. Photoshop's Info panel has
no ratio line; this goes beyond it at the reporter's request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Photoshop's Actions panel has a folder button and a New Set… menu item that make an
empty action set (default "Set 1"); New Action lands in the selected set. PhotoCraft
showed sets from Load Actions but couldn't make one.
- actions.newSet: an empty set (default "Set N"), kept for the session until it
holds an action; actions.record takes a `set` for the new action.
- Actions panel: the folder button and New Set… open a name dialog; empty sets show
as folder rows; a click on a folder row selects it; New Action records into the
selected action's set, else the selected set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crop_ui.rs moved to tools/ and the Info panel to panels/info.rs on main:
the #3145 W/H change and its test are reapplied there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While the Crop tool shows a frame, the Info panel's W and H are the
frame's own size (before any turn), as in Photoshop, so a crop's ratio
can be matched to another photo. Other tools still show the selection.
The other #3145 symptoms are already fixed on main: the ratio fields
(#3209), the crop box's Undo (#3510) and handle-snap jitter (#3206).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The document's save folder is now stored for an export only once the export
has succeeded; other saves keep storing it before writing, as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Photoshop opens the Stroke dialog for a Stroke descriptor without its blend
mode, even with dialogs off, so an exported action stopped there. stroke_to
now writes edit.stroke's defaults for location (center), opacity (100),
mode (Normal) and preserveTransparency (false) when the step leaves them out,
as Photoshop's own recorded Stroke carries them all.
Fixes#8303
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
layer.setAdjustment changes only the settings it names, but the Levels
descriptor writes each range whole and fills the end an edit did not name
with 0 or 255. A recorded {"kind":"levels","inBlack":31} was exported as
Inpt [31, 255] with nothing skipped, so replaying it also reset a retained
Input White. This is the Levels half of #8701 (Color Balance and
Hue/Saturation, #8531).
levels_complete accepts a Levels edit only when, for the master curve and
every channel object, inBlack/inWhite are both given or both absent, and
likewise outBlack/outWhite. set_to uses it as the levels arm of the
existing completeness check, so strict export refuses the step and a
non-strict export lists it as skipped.
Test partial_levels_edits_refuse_strict_export fails without the fix (the
export succeeds with Inpt [31, 255]) and passes with it.
Fixes#8530
Export As, Quick Export and Save for Web now start in the folder of the
last successful export (new preference export.lastFolder, kept across
restarts), falling back to the document's folder when none is remembered
or the folder is gone. Save As and non-export save dialogs are unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Review follow-ups: the dismissal was keyed by tab index, so closing the dismissed
document could hide the frame of a same-size tab that took its index; and a press
taken by Straighten skipped `begin_drag`, leaving the frame hidden after a click
too short to level anything. Regression tests for both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since main's #3464 a Pen draft carries the owner its first click captured
(document, revision, target path). The test built a draft with no owner,
so finishing it took the target from the current UI state, where path.set
had left the old work path selected, and appended to it: the selection
became 0,0 170x80 instead of the triangle plus the square. The test now
captures the owner as main's Ctrl+Enter test does, with the work path not
selected in the Paths panel (the Pen then starts a new work path).
Co-authored-by: mahefanante <42338306+mahefanante@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved crates/ui-egui/src/canvas/gesture.rs: kept the polygon close reach
and added the polygon_cancel_stale call from main.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Resolved crates/affinity/src/tests.rs: kept the raster identity tests and
appended the stream_storage tests from main.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
#9512 made the RGB compositor and the GPU blend an adjustment layer's Fill
inside the special eight (Fill is part of the blend, Opacity alone mixes it
in). The ink compositor's mix_adjusted still took Opacity x Fill as coverage,
so a Linear Burn Levels layer at Fill 71% exported Y 0.957 where the display
shows 0.988, and the_split_route_agrees_with_the_exact_path failed whenever
the proptest drew such a stack.
mix_adjusted now does what composite.rs does, and the test reference model
does the same. Regression test: the shrunk case plus every special-eight mode
at Fill 40% with a mask, against the reference and the split route.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main moved to 952c328b3. The conflicts were the new catalog rows beside main's path rows, the status line and history table of docs/ui-parity.md, and extra_windows in canvas/tabs.rs, which now passes main's focused flag while drawing_window names the window. The Scroll All Windows tests build DocWindow with main's floating and focused fields, the Hand drag's follow step moved into scroll_all_windows::follow_drag, and main's new ar, da, fi, hi, nb and sv catalogs get the Scroll All Windows row.
Esc cancelled the crop but the next frame made the default frame again, so the
borders never went away. Esc, the options bar's cancel and the crop menu's
Cancel now hide the frame (crop_ui::dismiss); a press on the canvas draws a new
one, and leaving and re-picking the tool brings the default frame back.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
With a selection, `open_command_dialog` opens the Equalize dialog, so
`ui.dialog.open` and an action step with its dialog turned on offer
both choices, as the menu does. The Equalize marker is a route marker,
so `ui.dialog.set` cannot add it to another dialog.