Commit Graph
16946 Commits
Author SHA1 Message Date
David Mann 2c88f264a0 Merge queue batch #17274: #14659, #16402
Merge queue batch: 2 PRs (#14659, #16402)
2026-11-28 13:28:06 +01:00
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
David Mann e315031a92 Merge #14659 into the merge queue batch
File Info: document name as the title, and title-case labels (#13824)
2026-11-28 12:04:00 +01:00
David Mann d5582062a0 Merge queue batch #17258: #17240, #17247
Merge queue batch: 2 PRs (#17240, #17247)
2026-11-28 12:03:05 +01:00
David Mann 82cd29a908 Merge #17247 into the merge queue batch
fix(ui): floating document windows open over the document area (#16883)
2026-11-28 10:51:30 +01:00
David Mann 1268f649bc Merge #17240 into the merge queue batch
Show a centred target for the Precise Eyedropper
2026-11-28 10:51:30 +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
MaheshDesu 382f418f0b fix(ui): File Info takes the document's name and stays on it (#13824)
The dialog is titled with the document's name without its extension, and OK edits the document it opened on even if another tab becomes active. The Basic labels are already title case on current main.

Signed-off-by: MaheshDesu <[email protected]>
2026-11-28 12:10:43 +05:30
FredApps 301922ccef Parity: RFC-0052 headless column from the engine registry (#17252)
The parity report gets a headless column computed from the engine command registry that photocraft-cli and the MCP server load: 517 yes, 48 no (window), 0 partial, 99 unknown of 664 items, per RFC-0052.
2026-11-28 02:00:02 +01:00
hnoerenberg 7c43b55625 docs(ui): name the full-screen fallback beside the desktop offset
The framework shows a document window on its fallback layer inside the app window in one more state than `desktop_origin` reads: while OS windows are available, a mount also falls back when the app window is full screen or, on Wayland, maximized (craft-libs `ui-contract/src/runtime/windows.rs`, `opens_over`). View > Screen Mode reaches that state inside the app.

`WindowHost::opens_windows()` answers for the viewport of the running pass and not for the app window, so a menu command cannot decide this from the app window's state; the gate therefore stays as it is, and the doc comment now says the offset is still added there and points at #16846, the epic's item for full-screen modes with floating document windows. No code change: only this function's doc comment.
2026-11-28 00:58:50 +01:00
David Mann fbd851e98f Merge queue batch #17245: #17234, #17235
Merge queue batch: 2 PRs (#17234, #17235)
2026-11-28 00:58:30 +01:00
hnoerenberg 60a7b96525 fix(ui): floating document windows open over the document area (#16883)
`space` handed the framework the document area in the app window's own points, while a document window that opens as an OS window opens at a desktop rect. With the app window anywhere but at the screen's origin, Float in Window, Float All in Windows, New Window for Document and Cascade placed their windows at the document area's offset inside the app window read as a desktop place, so they landed outside the app window instead of over the document area.

The area now moves into desktop points by the origin the host reports for the app window, and the `position` a torn-off tab carries (a point of the app window) takes the same offset, so the window opens under the pointer where the tab was dropped. Window sizes, the cascade step and the docked panes keep what they are today: only the origin the placements work from changes. Where the host reports no rect for the app window, or where the document window shows on the framework's fallback layer inside the app window instead of an OS window of its own, the offset is zero and placement stays as it is today.

Tests go in the new file `crates/ui-egui/src/canvas/arrange_window_origin_tests.rs`: 11 tests run the real commands with the app window standing at a desktop rect away from the screen's origin, and compare every opened window's rect against the app window's rect and the document area the passes laid out, never against a literal pixel.
2026-11-27 23:50:25 +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 326d338ea9 Merge #17234 into the merge queue batch
Free Transform: grey Warp for a group box (#16731)
2026-11-27 23:49:38 +01:00
David Mann 8d7c1f833f Merge queue batch #17237: #16021, #16395
Merge queue batch: 2 PRs (#16021, #16395)
2026-11-27 23:45:26 +01:00
Dan fe81b8304f Retry the Windows CI check for #16832 2026-11-27 22:29:06 +00:00
Dan ba97bc4635 Use typed cursor pixels in the contrast test 2026-11-27 21:55:06 +00:00
Dan ec1a2c7992 Show a centred target for the Precise Eyedropper (#16832) 2026-11-27 21:52:16 +00:00
David Mann d84dbf1ef1 Merge #16395 into the merge queue batch
Auto-Align Layers: Projection radios, Lens Correction group and description line
2026-11-27 22:30:20 +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
David Mann 71f0d7483e Merge queue batch #17230: #17226, #17228
Merge queue batch: 2 PRs (#17226, #17228)
2026-11-27 22:29:24 +01:00
RickiNano 17252c4625 Free Transform: refuse group Warp before a background prepare, grey it during a commit (#16731)
A large group's box opens only when its preparing job lands, so Warp
now checks for a group before Free Transform starts. The open-box rule
that greys the Warp block for several layers or a group now runs before
the pending-commit branch too.
2026-11-27 22:28:57 +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
RickiNano ba9065fcfc Free Transform: grey Warp for a group box (#16731)
A box over a group now opens with warp off, as the box over several
layers does: Warp is greyed in its right-click menu and Edit > Transform
> Warp (with the split-warp rows) is greyed while it is open. Warp asked
through automation, or from the menu with no box open, refuses on a
group instead of opening a plain box. Pixel, type and smart object
layers keep Warp.
2026-11-27 21:41:50 +01:00
David Mann d6f03f669c Merge #17228 into the merge queue batch
fix(ui): Window › Arrange layouts keep each document's zoom (#16885)
2026-11-27 21:23:22 +01:00
David Mann e044e6e4c1 Merge #17226 into the merge queue batch
Patch tool: canvas right-click menu inside and outside the selection (#12122)
2026-11-27 21:23:22 +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
David Mann c65b6ada00 Merge queue batch #17223: #16027, #17205, #17206, #17213
Merge queue batch: 4 PRs (#16027, #17205, #17206, #17213)
2026-11-27 21:06:24 +01:00
aiongg b389a2fc26 Merge storytold main into fw365-frame-floor
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine-core/Cargo.toml
#	crates/ipp/Cargo.toml
#	crates/ui-egui/src/panels/options_bar/fill.rs
#	crates/ui-egui/src/tools/option_cells.rs
2026-11-27 19:31:34 +00: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
RickiNano 44542cad4e fix(ui): Window › Arrange layouts keep each document's zoom (#16885)
The n-up and Tile layouts ran Fit on Screen on every view, so each
document took a new zoom fitted to its pane. They now leave the views
alone: every document keeps its zoom and the document point at its
centre, so it shows centred in its new pane, and Consolidate All to
Tabs shows the zoom it had before the layout.
2026-11-27 19:46:36 +01:00
David Mann b8cf50ae8b Merge #17213 into the merge queue batch
Show the not-allowed cursor on blocked painting targets (#16815)
2026-11-27 19:42:21 +01:00
David Mann ae68590f3d Merge #17206 into the merge queue batch
Puppet Warp: right-click pin menus (#16734)
2026-11-27 19:42:21 +01:00
David Mann 83cf5cd202 Merge #17205 into the merge queue batch
Layers: a second click on the targeted vector mask un-targets it (#16783)
2026-11-27 19:42:20 +01: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 Mann ed09854be0 Merge pull request #17104 from davidmann4/fix/alt-codes-10863
Alt codes type their character on Windows (#10863)
2026-11-27 19:39:18 +01:00
aiongg a2502b2ab5 Test harnesses run the document area's per-pass work before the area, as the window's body does
The window's body runs document_area::each_pass before the dock, so a harness that shows the
document area alone ran none of it: a crop left pending by a tool switch was never committed and
the pen pressure curve never reached the stylus. canvas::testing::document_area runs that work and
then the area, and every harness that shows the area without the window goes through it.
2026-11-27 18:24:53 +00:00
RickiNano 6573a2eb89 Patch tool: canvas right-click menu inside and outside the selection (#12122)
Inside the selection the Patch tool opens Use Pattern to Patch Selection
(greyed: no pattern patch yet), Use Patch as Source / Destination (they set
the options bar's mode), Color Range... and Load Selection... (greyed until a
selection is saved). Outside it opens the Lasso's selection menu, and with no
selection the selection tools' no-selection menu.
2026-11-27 19:10:07 +01:00
David Mann b257cb5607 Merge remote-tracking branch 'origin/main' into fix/alt-codes-10863
# Conflicts:
#	Cargo.toml
2026-11-27 18:51:45 +01:00
David Mann 4a67487a65 Merge pull request #17149 from davidmann4/perf/pointer-move-gate-17148
perf(ui): a pointer move that changes nothing under the pointer runs no frame (#17148)
2026-11-27 18:42:52 +01:00
David Mann 4a8d063c9c Merge queue batch #17211: #16090, #16388, #16454, #14814, #15391
Merge queue batch: 5 PRs (#16090, #16388, #16454, #14814, #15391)
2026-11-27 18:41:24 +01:00
aiongg ead3cd487a Layers panel requests are cleared only once the panel reports them taken
Rename, reveal and Find Layers focus are one-time requests the app passes to LayersPanel. The app cleared them after every call, also after a measuring run that applies none. It now clears them on LayersOutput::requests_taken (craft-layers), which the panel sets from its real run.
2026-11-27 17:15:24 +00:00
aiongg d2a35bf205 Color Balance tone kept by the Properties host from the editor's output; Remove tests wait on the job itself
The Properties panel handed the editor a one-time tone and dropped it after a run that did not apply it (a measuring run). The host now keeps the tone as the editor reports it each pass (ColorBalanceOutput::tone, the editor's host-kept contract); Reset to defaults sets Midtones.

wait_until_landed waits for each running job with Session::wait_job, then lets jobs_ui::tick take its end, instead of a wall-clock deadline.
2026-11-27 17:15:24 +00:00
Dan 1429217786 Show the not-allowed cursor on blocked painting targets (#16815) 2026-11-27 16:41:47 +00:00
aiongg 7d92b709f4 Document area and dock versions cover what changes with no input; per-pass canvas work runs outside the dock
The dock's column around the document area replays while the canvas version holds, so the
area's per-pass work (GPU documents and budget, landed redraw blocks, tablet settings, a pending
crop) runs in the window's body before the dock. The canvas version holds where the Brush Preset
picker is open and, while it is, the brush and presets; the Batch input shown in place of the
documents; and the GPU canvas's texture budget. The options bar, Character, Properties and Glyphs
hold the font families key, so a family installed while a font menu is open reaches it. A panel
whose body does not show keys its column by the shared version only. An area run that shows no
canvas clears the crop task bar's rect. The Properties Reset session ends when a run shows no
adjustment layer's controls, decided from what the panel shows, since a pass that reuses the
inspector's measurement runs none of its content.

Tests: the Remove tool's landing wait is bounded by wall time instead of 40 frames; the idle
picker trial accepts the picker replaying with the area around it.
2026-11-27 16:39:41 +00: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
David Mann 165ddc24eb Merge remote-tracking branch 'origin/main' into perf/pointer-move-gate-17148 2026-11-27 17:24:01 +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
David Mann 10feb2bd58 Merge #15391 into the merge queue batch
Show a modal alert when an image cannot be opened
2026-11-27 17:17:44 +01:00