commands::holds registered one fact per command, each with its own label, so
the menu bar's titles made about 1,400 registrations per pass and every
replay of the bar made them again: the largest group of replayed journal
entries in PhotoCraft. A container now registers one fact holding its
commands; commands::shown finds a command in it in the same order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The blend, Opacity, Fill and lock rows ran in every pass of the Layers panel,
also while the pointer only moved over its rows: about half of the panel's
time in such a frame. They are a memoized view keyed by the active layer's
properties and the modes it offers; their edits leave through an outbox.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The host painted a tool's readout or hud only in a pass where the tool
asked for it, and a tool asks from press or drag, which run only in a
pass with a pointer move. Every other pass of the drag (the ants and the
live outline repaint all the time) painted no box, so the marquee's W/H
box blinked. The host now keeps the box the gesture's last press or drag
asked for and shows it again in passes with neither; a drag that asks
for nothing drops it, and it ends with the gesture.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The flyout marked each row with radio_mark(tool.id == shown), and an
unchosen radio row paints an empty ring, so every other tool had a
circle before it. Rows now take check(tool.id == shown): a check before
the shown tool and nothing before the others, as the reference
application's tool flyouts show (photocraft#17102). The mark column
stays reserved, so icons and labels keep their alignment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A dialog moved only by its title line inside the frame's padding: the
16 px above the title and beside it did nothing. A layer's band now runs
from the frame's top and side edges down to where the body starts, as a
title bar does (photocraft#17112). An OS window's band stays in its
header, clear of the edges the platform hit-tests for resizing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under the canvas's precise cursor (Other Cursors > Precise, swapped by Caps Lock) the Lasso and the Polygonal Lasso
show the crosshair, its centre the point the outline takes, with the operation's badge. Before, Caps Lock left the
arrow and the lasso icon in place. The Magnetic Lasso already showed its width circle there.
A trial toggles Caps Lock off, on and off over the Lasso and the Polygonal Lasso and checks the crosshair comes and
goes; the Magnetic Lasso's width-circle trial stays alongside it.
Split out of #3398 at review.
Co-authored-by: citrunade <301939363+citrunade@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts:
crates/video/Cargo.toml
crates/video/src/frame/convert.rs
Ported in this merge: main gained the Theora codec (#2052). crates/video/Cargo.toml's craft-media dev features are the union (avi, bink, isobmff, mpegts, ogg, vmd) with this PR's bink_binkdec example, and frame/convert.rs keeps both TryFrom impls (Bink, then Theora). Fixes the earlier gate failure: the craft facade's [features] were regenerated (UPDATE_FACADE=1), adding media-bink, video-bink and video-bink-decode. craft-video/craft-media tests pass locally (the three ffv1/av1 failures under --all-features also fail on main here because of the local ffmpeg), and clippy and the facade test pass.
Conflicts:
crates/video/Cargo.toml
Delta since approval (b2756f6f7, reject out-of-frame picture bounds + test) reviewed. Ported to main's layout: tests/theora.rs is now tests/it/theora.rs, registered in tests/it/main.rs under the theora feature; Cargo.toml takes main's single [[test]] it; craft facade gets video-theora, video-theora-decode, video-theora-encode.
Conflicts:
crates/video/src/frame/tests.rs
crates/video/tests/it/main.rs
frame/tests.rs and tests/it/main.rs keep both the PR's Bink cases and main's new rawvideo cases.
Main made craft-media an optional dependency of craft-video, enabled by
the features that use it; the Bink decoder reads craft_media::CodecParams,
so bink-decode enables it like vp8-decode and av1-decode do.
Conflict: main split install.rs into install/{linux,macos,windows,freebsd,tests}.rs. Ported this PR's change into that layout unchanged in substance: retry_busy_detach* stay in install.rs; detach_with and the clear_mounts retry are in install/macos.rs (its stderr test as #[craft_ui::testing::trial]); the retry-policy tests and the two busy-mount tests are in install/tests.rs as #[trial] (craft-update runs harness = false), and the clear_mounts control now pins Permission denied as in this PR. Local: craft-update lib tests (new retry tests run) and clippy -D warnings pass.
Conflicts:
crates/text/src/lib.rs
Conflict: crates/text/src/lib.rs module docs; this PR's embed paragraph sits beside main's module list. Ported to main's test harness: craft-text runs tests through craft_ui's #[trial] (harness = false), so the embed test is #[trial] and its module is pub(crate) for craft_ui::registry. Local: clippy -D warnings clean, embed test passes.
Main builds the codec tests into the lib test under crate::integration,
so the oracle test added here calls
crate::integration::codecs::testkit::ffmpeg_or_skip like its neighbours.
crates/craft/Cargo.toml [features] is checked against the member
manifests (crates/craft/tests/features.rs); this adds the line the new
member feature needs, as UPDATE_FACADE=1 would write it.
crates/craft/Cargo.toml [features] is checked against the member
manifests (crates/craft/tests/features.rs); this adds the line the new
member feature needs, as UPDATE_FACADE=1 would write it.