* --version: name the commit of a dev build from git (#5247)
A plain cargo build reported only '0.8.2 (dev build)'. The desktop and
CLI build scripts now read the checkout's commit (git rev-parse HEAD,
rerun when HEAD moves) and the binaries hand it to build_info at start,
giving '0.8.2 (dev build, 6f8505421)'. Release builds keep
PHOTOCRAFT_BUILD_SHA and their format; without git, or when the
workspace isn't the root of the checkout (a source tarball unpacked in
another repository), it stays '(dev build)'. The engine itself still
doesn't shell out, so a commit doesn't rebuild it.
* --version: only watch git paths that exist (#5247)
Cargo treats a missing rerun-if-changed path as always changed: it re-ran
the build script and recompiled photocraft and photocraft-cli on every
build when packed-refs (or the branch's loose ref) did not exist. Watch
HEAD and packed-refs only when present, and for a packed branch the
nearest existing directory under refs/, so the first commit on it, which
writes the loose ref, still triggers a rebuild.
* --version: watch an unborn branch and reftable checkouts (#5247)
The git paths are now registered before asking for the commit, so the first
commit on an unborn branch re-runs the build script. A reftable checkout
watches reftable/tables.list, which every ref update rewrites, instead of a
loose ref or packed-refs.
* --version: git fixtures ignore the caller's repository and ref format (#5247)
The test fixtures run git without GIT_DIR, GIT_WORK_TREE, GIT_COMMON_DIR,
GIT_INDEX_FILE and GIT_DEFAULT_REF_FORMAT, and the files-format fixtures pass
init.defaultRefFormat=files, so a reftable default or an inherited GIT_DIR
can't move or reshape them.
* --version: the git fixtures join the app's tests/it binary (#5247)
Main builds each crate's integration tests as one binary. The desktop
--version test now hands the checkout's commit to build_info as the
binary does, so both print the same dev build string.
---------
Co-authored-by: FredApps <[email protected]>
Thumbnail Ctrl+click and Select Pixels are Load Selection (Selection
Change for a shape or a vector mask), Shift+click and the chain name
their direction, and a mask drop is one Add Layer Mask step. The menu
calls (no layer id, plain toggles) keep their names.
file.export.artboardsToPdf takes "encoding": "jpeg" (default, today's
DCT pages) or "zip": each page is the board's exact 8-bit RGB samples in
a /FlateDecode stream, and quality is ignored. Any other value is an error.
The dialog gets the Encoding radios ZIP and JPEG; ZIP greys out Quality.
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.
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.
PhotoCraft turns on the framework's pointer-move gate
(storytold/craft-libs#3801, storytold/egui#65): a move with no button held
runs a frame only when what lies under the pointer changes, a drag runs, or
the pointer is over a canvas, which follows the pointer (its cursor, the
rulers' marks, the readouts). craft-libs and egui are pinned at those PRs'
heads.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings saved before the checkbox (#14243) held one number, with 1 meaning off. Any number up to 1
loaded as the box off with 1.45, so a hand-edited 0.5 was silently replaced and not reported. Only
exactly 1 is the off sentinel now; a smaller number is reported as an invalid preference and loads
as 1.45 with the box on, as an out-of-range value in the new format does.
The flyout rows check the shown tool and draw no empty ring before the
others (#17102). The new pin also carries:
- a list's toggle cell reports one access node, a CheckBox when it is
one (craft-libs 73743edd0): the Brush Settings test clicks the
Enable Scattering check box by that role;
- a color row with opacity (craft-libs 39a7ddf9d): four numbers read
back as the fields' f32 Rgba value, so the printable-area test
compares the area within f32's precision (file.print allows 2 pt).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Blend Text Colors Using Gamma was a 1.0 to 2.2 slider where 1.0 meant off, so turning it off and on lost a custom value. ColorSettings now keeps the field's value (blend_text_gamma, 1.00 to 3.00, two decimals) and the box (blend_text_gamma_on) apart; text_gamma() is what the compositor blends in (1 while the box is off), and the compositor takes up to 3.00. edit.colorSettings still takes a bool for blendTextGamma (the box alone) or a number in range (the value, and the box checked), plus blendTextGammaOn. The dialog shows the checkbox with the field beside it: typing a value checks the box, focusing does not, an out-of-range value alerts "A number between 1.00 and 3.00 is required. Closest value inserted." and an emptied field puts its value back. Settings saved as one number still load: 1 as the box off with 1.45, any other value as the box on with that value (#14243).
The Appearance page's Size pick was dropped: appearance_row copied back
only the mode and the theme slots, so the row showed Compact again on the
next frame. PhotoCraft also kept no size, sent none to the suite and never
gave the root a density.
Add interface.density (compact/comfortable), drawn by the Appearance page,
kept in step with the suite's shared size like the mode and themes, and
set as the root's density each frame.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The engine keeps its English message for automation clients, now as
`atn_cmds::CAF_CUSTOM_AREA_NOT_REMEMBERED`. When a step fails with it, the
status bar shows the shell's literal `tl!` copy instead, so the recovery
instructions follow the UI language and the translation coverage report
lists the key.
The workspace remembers Custom sampling but not its painted area (Custom
reopens empty), so an empty recorded step had no area to sample and failed
with the command's parameter error. It now stops before filling with a
message that says the Custom area isn't remembered and how to go on, and
never falls back to another sampling area. The document and the remembered
settings are unchanged.