Conflicts:
- options_bar/fill.rs: main's HealingReplace arm joins the Paint Bucket's
mode match, which writes only when the mode changes.
- retouch_ui/bar/tone.rs: Finger Painting keeps its tracked binding;
main's pressure-for-size switch follows it.
* fix: mark duplicate images unsaved with their own history state
* test: use engine save API for duplicate close regression
* test: install commands for duplicate history cases
* test: keep duplicate history fixture core-only
The merge kept both import lists in channel_cmds/view.rs. Main moved the
code that used AlphaChannel, Color and ColorIndicates out of this file,
so clippy -D warnings failed on unused imports.
A review round on the draft pull request:
- the group refusals now pin the painted child layer's pixels inside the
group before and after the click; a group has no surface, so the
click-point check alone was vacuous there;
- the mask guard is renamed to what it actually pins and now also pins
the engine's "Paint Bucket" state label and its filled: true answer;
- the nested-group fixture nests the active group inside a group that
really holds a red child.
No production-code change.
A Paint Bucket click on a hidden target layer, a layer with Lock image
pixels or Lock all, or with a group active filled nothing (right), but the
first two said so only in the status bar and the group used the shared
group sentence. The reference application opens a modal alert with OK for
each and changes nothing.
Naming the tool in brush_refusal::tool_name and counting Lock image pixels
for the Paint Bucket in locked() routes all three through the press-time
alert that press_refused already asks before the status bar and before
refuse_group, so the group case speaks once and in its measured words. No
new wording: the sentences are the house HIDDEN/LOCKED/GROUP constants the
Brush, Magic Eraser, Burn and Healing Brush items merged, and the tool
name is tl!("paint bucket") like tl!("burn tool").
The bucket click itself is untouched: a hidden, locked or group target adds
no pixels and no History state, a visible unlocked layer still fills, a
pixel layer inside a group fills, Lock transparency and Lock position still
fill, and the group's targeted mask keeps today's exact output. Two tests
that pinned the bucket's old status-bar rule (hidden_layer_tests,
paint_tool/tests) are re-pinned to the alert, each keeping its rest.
New tests: paint_bucket_refusal_alerts_tests.rs, 11 tests; 5 of them fail
on unmodified main (the three measured refusals, the nested-group
neighbour, and the ui.inspect dialogs round trip).
The shell keys each slot by its region version: title_bar, options_bar
and a new status_bar version. TitleSlot and OptionsSlot go; the status
bar keeps its body and trailing views inside its slot. Trials tell the
shell's slot views apart by id in the shell's order.
Conflicts:
- Cargo.lock: kept photocraft#17149's lock. F6's a5e476b933 committed a lock the local patch file had rewritten.
- panels/region_versions.rs (no textual conflict): F6b deleted `serialized`, which F4's canvas version still uses for
the UI state that has no `Hash`. `serialized` stays; the canvas version reads the tool options through their
revision instead of serializing them.
The vector tools' drain after every canvas run read `pointer::frame` only for the buttons held and the release, and
the type transform box read it for the modifiers and the press. Both noted the pointer, so any pointer move ran the
document area. They read `pointer::press_state` and `pointer::mods`, which only a press, a release or a modifier
change moves. The pointer-over-panel trial stays held back: two craft-ui-canvas reads (the tool host, the middle-button
autoscroll) still note the pointer on every canvas run.
The tabs and documents run only when what they show changes or input reaches them, and the dock's tree replays with
them (DockPanels::content returns the same version). The work every pass needs (GPU documents and budget, Content-Aware
Scale, background redraw blocks, tablet settings, a pending crop, a stale Properties eyedropper) runs before the view.
Landed redraw blocks, dialog previews, queued view commands, the crop frame and the open dialog are in the version; a
canvas run that waits for its own work asks for its next pass through the framework. Canvas code reads the modifiers
through pointer::mods, and the task bars report the rect of the last canvas run that drew them.
The dock shows each column as a memoized view keyed by the versions of the
panels it shows (craft-libs DockPanels::content): every panel returns its
region version, the toolbar a version of its rail (the slots and tool in
the preferences, the remembered group tools, the Edit Toolbar drawer and
the footer). The canvas has no version yet, so the docked tree it sits in
runs every pass while the columns beside it replay.
The chrome settle trials count the dock's inner views (tab rows, column
bars, panel bodies, the toolbar footer) as run or replayed only where their
column runs; at rest they replay inside the column's view, so the trials
assert that nothing ran and the column views replayed.
Needs the craft-libs pin moved to a commit with the dock's column views.