Commit Graph
253 Commits
Author SHA1 Message Date
David Mann bc82f013e5 Merge #16402 into the merge queue batch
Line tool: W and H fields for the active line's length and thickness
2026-11-28 12:04:01 +01:00
qvest-ssels cd9c4a3789 cargo fmt 2026-11-28 09:36:29 +01:00
Gert Pellin - GPEandFredApps 391cb01710 --version: name the commit of a dev build from git (#5247) (#5300)
* --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]>
2026-11-28 08:11:58 +01:00
David Mann 40c58a2948 Merge #17235 into the merge queue batch
Layers: thumbnail gestures get the reference application's history names (#16786)
2026-11-27 23:49:38 +01:00
David Mann fc54aa7381 Merge #16021 into the merge queue batch
Artboard from Group: an empty group goes right of the topmost board (#14558)
2026-11-27 22:30:20 +01:00
RickiNano c5b500f40a Layers: thumbnail gestures get the reference application's history names (#16786)
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.
2026-11-27 22:04:36 +01:00
aiongg 0ee13a93f4 Merge pull request #17207 from aiongg/fw365-frame-floor
perf(ui): a settled frame replays the dock, canvas and bars; craft-libs at storytold/craft-libs#3900
2026-11-27 15:22:11 -05:00
aiongg 86931c85e6 Pin craft-libs at the merge of craft-libs#3917 (requests taken, per-context sizing measures) 2026-11-27 19:20:33 +00:00
David Mann 26b0888ef3 Merge #16027 into the merge queue batch
Artboards to PDF: ZIP encoding (#13651)
2026-11-27 19:42:20 +01:00
David MannandClaude Opus 5.5 50c8721063 Pin craft-libs at storytold/craft-libs#3801's merge commit c7c404fe (#17148)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 17:37:05 +01:00
rmsff ea16762639 Artboards to PDF ZIP encoding tests: paint the boards' layers directly, since edit.fill moved to the paint crate 2026-11-27 19:19:18 +03:00
rmsff 5e6f5252c0 Test Artboards to PDF ZIP encoding 2026-11-27 18:19:49 +03:00
rmsff a33c8ef08d Artboards to PDF: ZIP encoding
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.
2026-11-27 18:19:49 +03:00
aiongg 35b60e9341 build: pin craft-libs at storytold/craft-libs#3900's head 7d9544226d 2026-11-27 15:19:10 +00:00
aiongg e7767a86c2 build: pin craft-libs at storytold/craft-libs#3900's head 47ba4dfd38
The frame-floor batch on storytold main with craft-libs#3801. toml moves
to 1.1.8, the version craft-update pins exactly.
2026-11-27 15:10:08 +00:00
aiongg 113c6af86d Merge photocraft#17149's head (be49e08345) into fw365-int-pc
The egui pin at storytold/egui#65's merge commit 932a73b2, as
craft-libs#3801 pins it.
2026-11-27 15:01:04 +00:00
aiongg d39d976fdc Merge storytold main (b88866441b) into fw365-int-pc
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.
2026-11-27 15:01:00 +00:00
David MannandClaude Opus 5.5 be49e08345 Pin egui at storytold/egui#65's merge commit and craft-libs at storytold/craft-libs#3801's head (#17148)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 15:15:54 +01:00
David Mann c33e300484 Merge remote-tracking branch 'origin/main' into perf/pointer-move-gate-17148 2026-11-27 14:59:10 +01:00
David Mann 7450da5a52 Merge #14820 into the merge queue batch
Refuse Group from Layers when the Background is selected (#14709)
2026-11-27 12:51:09 +01:00
David Mann 6e11d1972b Merge #16447 into the merge queue batch
Undo of New Channel and Calculations restores the channel target
2026-11-27 12:51:08 +01:00
David Mann 8f48e4a1b9 Merge #16230 into the merge queue batch
Layer Style: a new Gradient Overlay starts at grey 215 to white, Smooth (#14900)
2026-11-27 12:51:07 +01:00
David Mann b437ef3b16 Merge #16455 into the merge queue batch
Artboard from Layers: Width and Height take 4 to 32000 px
2026-11-27 12:51:06 +01:00
David Mann ca09020a6c Merge #16653 into the merge queue batch
Layers to Files: Include ICC Profile checkbox and iccProfile param
2026-11-27 12:08:37 +01:00
David Mann e5645b570e Merge #15154 into the merge queue batch
Actions: load every recorded Content-Aware Fill value and empty steps (#14254)
2026-11-27 12:08:36 +01:00
mlo0352 8303d38c60 fix: preserve unsaved Duplicate Image copies and their initial history (#14680)
* 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
2026-11-27 09:29:50 +00:00
qvest-ssels 79592621f3 Merge main into fix/group-from-layers-background-14709
# Conflicts:
#	crates/engine-core/src/cmd/layer_multi_cmds/group_from_layers_background_tests.rs
2026-11-27 10:15:52 +01:00
qvest-ssels da571544ef Drop channel view imports main no longer uses
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.
2026-11-27 09:40:05 +01:00
qvest-ssels ce2ed9b117 Merge main into fix/gradient-overlay-factory-defaults-14900
# Conflicts:
#	crates/engine-core/src/layer_style.rs
#	crates/engine-core/src/layer_style/gradient_overlay_defaults_tests.rs
2026-11-27 08:51:24 +01:00
qvest-ssels 8100457cd5 Merge main into fix/line-tool-wh-fields-13250
# Conflicts:
#	crates/engine-core/src/cmd/vector_cmds.rs
#	crates/ui-egui/src/tools/shape_options.rs
2026-11-27 07:03:44 +01:00
qvest-ssels f8ec532dcc Merge main into fix/undo-restores-channel-target-14683
# Conflicts:
#	crates/engine-core/src/cmd/channel_cmds.rs
#	crates/engine-core/src/cmd/channel_cmds/undo_channel_target_tests.rs
#	crates/engine-core/src/cmd/channel_cmds/view.rs
2026-11-27 07:02:26 +01:00
qvest-ssels bae76cf3d8 Merge main into fix/artboard-from-layers-size-range-14577
# Conflicts:
#	crates/engine-core/src/cmd/artboard_cmds/from_layers_size_range_tests.rs
2026-11-27 07:01:16 +01:00
aiongg ef9f9ca9e1 Merge fw365-f6b (56bf471c4a) into fw365-int-pc
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.
2026-11-27 03:11:37 +00:00
aiongg a5e476b933 Status bar binds the zoom alone; what the app remembers in preferences moves no region's version (FW-365 F6) 2026-11-27 00:40:21 +00:00
David Mann 321c383171 Merge #17117 into the merge queue batch
Color Settings: Blend Text Colors Using Gamma is a checkbox with a 1.00–3.00 field
2026-11-27 00:59:34 +01:00
David Mann 294fbe3351 Merge #14621 into the merge queue batch
Correct Calculations Gray values for default RGB composites
2026-11-27 00:59:33 +01:00
David MannandClaude Opus 5.5 b8304c6d5d build: craft-libs at storytold/craft-libs#3801's head (egui_fork::REV matches the egui pin)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 00:42:09 +01:00
David MannandClaude Opus 5.5 951cfadeeb perf(ui): a pointer move that changes nothing under the pointer runs no frame (#17148)
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]>
2026-11-27 00:27:41 +01:00
qvest-ssels ab2c75f621 Color Settings: only a legacy blendTextGamma of 1 loads as the box off
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.
2026-11-26 23:47:29 +01:00
David MannandClaude Opus 5.5 d201f0ebe5 build: move craft-libs to storytold next a46af76c (storytold/craft-libs#3788 merged)
Also brings storytold/craft-libs#3773 (readout flicker between moves).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 22:17:14 +01:00
David MannandClaude Opus 5.5 a5fb6aa532 build: pin craft-libs at storytold/craft-libs#3788 (Layers blend rows replay, #17131)
main's pin 5d2c8bdcf with the PR's one change merged in; move to next once it merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 21:00:10 +01:00
Ian 4fe21f6e50 test: install channel command registry 2026-11-26 14:50:51 -05:00
David Mann 18c90f2499 Merge pull request #17103 from davidmann4/fix/17102-flyout-no-empty-ring
Tool flyouts mark only the shown tool (#17102)
2026-11-26 20:36:13 +01:00
David MannandClaude Opus 5.5 3a9b2eed72 Move craft-libs to storytold next 5d2c8bdcf4 (tool flyouts check the shown tool, storytold/craft-libs#3746)
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]>
2026-11-26 18:56:21 +01:00
yoriswind f7699272e1 Preserve custom-pattern phase coverage on the current bitmap fixture 2026-11-26 09:14:41 -08:00
qvest-ssels ee10c0804e Color Settings: Blend Text Colors Using Gamma is a checkbox with a 1.00-3.00 field
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).
2026-11-26 17:22:41 +01:00
David MannandClaude Opus 5.5 307761b442 Preferences: the Appearance Size row keeps Comfortable (#17096)
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]>
2026-11-26 16:49:20 +01:00
David Mann 743d1b6c80 Merge #16961 into the merge queue batch
Package: skip PSD-embedded smart objects
2026-11-26 14:36:50 +01:00
RickiNano 40491cd8da Actions: the Custom-area message of an empty Content-Aware Fill step is translatable (#14254)
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.
2026-11-26 08:20:38 +01:00
RickiNano 9e8827aa45 Actions: an empty Content-Aware Fill step after a Custom fill stops and says why (#14254)
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.
2026-11-26 07:52:56 +01:00