Commit Graph
8150 Commits
Author SHA1 Message Date
Brennan StehlingandClaude Opus 5.5 95fb59dd28 Render path tests: on the GPU canvas includes a software adapter's reason (#9328)
CI's runners have software adapters, which record SoftwareAdapter for the whole window while the
GPU canvas runs. The flipped-view and over-budget tests now check that state with on_gpu_canvas
instead of expecting no reason at all. Checked locally with the adapter faked as a CPU device.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 05:25:10 -07:00
David Mann f811db8f65 Merge PR #9321: feat: type on a path follows its path when the path is edited (#9114) 2026-10-27 13:12:53 +01:00
Jeremy 94e13c9e6f docs(installer): describe the per-user default install location and scope 2026-10-27 12:09:03 +00:00
Jeremy bf4e8214fc fix(installer): correct the wizard and shortcut description in the release docs; harden install-policy checks 2026-10-27 12:01:33 +00:00
Jeremy f35b356f87 fix(installer): address scope and ARM64 review feedback 2026-10-27 12:01:33 +00:00
Jeremy c19d201748 feat(installer): default to a per-user ArtCraft folder 2026-10-27 12:01:33 +00:00
Jeremy 9956352be0 packaging(windows): dual-scope MSI, per-user by default, under the ArtCraft suite folder
Microsoft "Single Package Authoring": Package/Scope="perUserOrMachine"
writes ALLUSERS=2 and MSIINSTALLPERUSER=1, so the package installs
per-user by default (no UAC prompt) into %LOCALAPPDATA%\Programs\ArtCraftPhotoCraft (Windows Installer redirects the ProgramFiles folder in a
per-user install), and per-machine into Program Files\ArtCraft\PhotoCraft
through the setup wizard's "Install for all users" box or msiexec
ALLUSERS=1. Registry follows the context automatically: HKMU writes HKCU
per-user and HKLM per-machine, HKCR classes land in HKCU\Software\Classes
per-user, and components are keyed on registry values (ICE38).

Upgrades update the copy registered in the same context: the remembered
InstallDir is read from HKLM and HKCU separately, and installing in the
other context while a copy already exists is stopped with a message naming
the fix rather than creating a silent duplicate. The existing UpgradeCode,
ProductCode behaviour and per-machine upgrades are unchanged.

The Start Menu shortcut becomes non-advertised in its own component (an
advertised shortcut must target its component keypath, which is now a
registry value), as the ArtCraft Launcher's MSI already does.

Built and checked with WiX 5.0.2: full ICE validation and ICE50 pass, and
the built package's Property table, launch conditions, directory chain and
registry roots were read back from the MSI.
2026-10-27 12:01:33 +00:00
Khawar Zamman Wani 325421a28b perf(paint): keep rotated circular tips on the round fast path 2026-10-27 17:20:39 +05:30
Brennan StehlingandClaude Opus 5.5 c38281100a Render path: a document's own reason comes before a software adapter's (#9328)
A software adapter still runs the GPU canvas, so a document that left even that (over the
texture budget, a compositor that failed to build) now names its own reason; the other documents
keep the adapter's. CI's runners have software adapters, where the adapter's reason hid the
document's since 517eb6f2e. Reasons that leave no GPU canvas (CPU mode, a lost device) still come
first.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 04:49:21 -07:00
jonathanwxh-cell f97eb2849a Merge upstream main and resolve custom shape import conflicts
Preserve CSH import behavior, inline-data authorization policy, localization and regression tests while retaining upstream module extraction.

Local verification: formatting and independent static review passed. Parser/engine/automation/UI runtime, broader Clippy, WASM and visual gates remain incomplete locally because of resource limits. Hosted CI must establish remaining gates; this commit does not claim the PR is ready to merge.
2026-10-27 19:47:58 +08:00
jonathanwxh-cell 8286677a1f Merge upstream main and resolve conflicts for PR #6169
Preserve the PR's intended behavior and regressions while retaining upstream module extraction and changes. Formatting and independent static review passed.

Local verification: 247 text tests passed (5 ignored), including reordered duplicate-font metadata regressions. Clippy and WASM did not start because the local disk safety threshold was reached.

Local UI verification is incomplete. Hosted CI must establish the remaining gates; this commit does not claim the PR is ready to merge.
2026-10-27 19:37:33 +08:00
jonathanwxh-cell 56ef54cf4c Merge upstream main and resolve conflicts for PR #7621
Preserve the PR's intended behavior and regressions while retaining upstream module extraction and changes. Formatting and independent static review passed.

Local verification: Runtime tests and broader Clippy/WASM/integration gates remain unverified locally because of resource limits.

Local UI verification is incomplete. Hosted CI must establish the remaining gates; this commit does not claim the PR is ready to merge.
2026-10-27 19:34:27 +08:00
NetterSilverandClaude Opus 5.5 90efa9a114 Add an export benchmark for .pcraft, PSD and flat formats
`cargo run --release -p photocraft-io --example bench_export` builds a
36 MP photo document (the opened photo, a painted layer, a soft
half-transparent layer) and times `photocraft_io::export` for .psd,
.pcraft (with and without the per-document export cache the app's Save
uses), TIFF, PNG and JPEG: median and min of --reps runs. --out DIR
writes each format's bytes so two builds' output can be compared.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 12:29:59 +01:00
Don Omondi e53f822032 Retry SVG saves that change during a read without reporting an error
When the working file changed between settling and reading, the watcher
sent "The SVG is still being saved" to the UI as an error. Treat that
result as a retry: clear the pending stamp so the new save settles again,
and send nothing. Other read errors are still reported once.

Tests cover the retry, single reporting of other errors, queue
backpressure and receiver drop, and a stress run of atomic replacements
that must deliver only complete saves ending with the final one.
2026-10-27 14:29:53 +03:00
mahefanante 87d4098cbd Fix: apple gpu 2026-10-27 10:41:07 +00:00
Vlad Grankovsky 8ca3410a54 Merge origin/main into codex/multi-channel-editing
Integrate main 7ac7b8b10 with selection morphology and cropped feather-mask optimizations. Preserve both progress-document histories.
2026-10-27 11:31:28 +01:00
Khawar Zamman Wani f4742dd8aa test: update copy-on-write document selection 2026-10-27 15:13:46 +05:30
Don Omondi dadc7ff2ca Format smart object test imports 2026-10-27 12:19:01 +03:00
Khawar Zamman Wani d1d9780ce8 test: import selection surface types 2026-10-27 14:47:25 +05:30
Brennan StehlingandClaude Opus 5.5 517eb6f2e4 Render path: a software adapter records its startup reason though it runs the GPU canvas (#9328)
set_wgpu builds the GPU canvas on a software adapter, so startup returned on app.gpu before it
recorded CpuReason::SoftwareAdapter, and the status bar and perf.renderPath left it out. The
software-adapter check no longer needs the window to be without a GPU canvas; CPU mode still
does, and a hardware adapter records no reason. Retry GPU's rebuilt canvas checks it again.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 02:10:01 -07:00
Brennan StehlingandClaude Opus 5.5 b0688ee9a3 Render path: the status bar names a non-memory reason, and perf.gpuFallback follows the active document (#9328)
A reason other than the memory budget (a flipped view, Advanced Blending…)
now shows "CPU Rendering" even while the measured layer fit is over the
budget. perf.gpu_fallback is set in one place from the active document's
reason, also each frame after a switch of document, so a refresh of an
arranged cell or another window can't make it disagree with
perf.renderPath's current. The control protocol says a history entry's doc
is the changed document's id, or 0 for every document.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 02:07:25 -07:00
Brennan Stehling ae043f50a0 Render path: the adjustment preview's CPU-proxy reason has its own slot (#9328)
A clipped or Blend If adjustment preview runs on the CPU proxy. Its reason
lives in a slot of its own, separate from the canvas's per-document reasons
and the app-wide reason, so closing or retargeting the dialog ends only the
preview's entry and can never report the canvas back on the GPU.
2026-10-27 02:07:25 -07:00
Brennan StehlingandClaude Opus 5.5 63b718a0b3 Docs: perf.renderPath in the control protocol and the development guide (#9328)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 02:07:25 -07:00
Brennan StehlingandClaude Opus 5.5 dfdfb50339 Render path: one place records why a view left the GPU, typed, logged once per change and shown in the status bar (#9328)
render_path::note is the single entry point for every GPU exit (over budget, canvas too large,
compositor build failure, device loss, unsupported layers, clipped adjustment preview, flipped
view, software adapter or CPU mode at startup). It replaces the four direct writes of
perf.gpu_fallback and the three ad-hoc log lines, stops the over-budget log from repeating after
each brush dab, gives the over-budget reason its numbers, and records the exits that were silent.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 02:07:25 -07:00
Don Omondi 285770532b Merge main into embedded vector save-back
Resolve conflicts with the engine's cmd/ module move and the per-crate
integration test binaries. Run a selected VectorCraft.app bundle directly
(identified by bundle id) and reject nested gzip in bounded SVG parsing.
2026-10-27 11:59:56 +03:00
Khawar Zamman Wani 6daf9731f1 test(curves): use current egui ID constructor 2026-10-27 14:12:06 +05:30
Khawar Zamman Wani a8c992da50 test(curves): keep polyline tests after editor implementation 2026-10-27 14:03:36 +05:30
Khawar Zamman Wani 77ddfaca64 perf(curves): sample graph directly and cache channel polylines 2026-10-27 13:59:41 +05:30
Khawar Zamman Wani ffd9ec70c5 fix(selection): ignore off-canvas remnants when deselecting 2026-10-27 13:58:29 +05:30
PerchAnton 8bb0a5e674 Merge main and preserve automation root alias tests in extracted module 2026-10-27 10:27:26 +02:00
Khawar Zamman Wani 9722d16909 perf(selection): retain direct Replace path and tighten validation 2026-10-27 13:19:08 +05:30
Khawar Zamman Wani 34af1d8e66 fix(engine): convert Bitmap images in bands 2026-10-27 13:18:39 +05:30
mahefanante 779424dade Fix: selection de tracé autre que celle active sans shortcut modifié 2026-10-27 07:37:21 +00:00
Khawar Zamman Wani 8324e278a1 perf(selection): combine GRAY8 masks directly in tiles 2026-10-27 12:42:18 +05:30
Khawar Zamman Wani 32e166b720 perf(selection): scope Color Range sampling to active bounds 2026-10-27 12:37:05 +05:30
mahefanante 0c951ffdb5 Fix: selection de tracé autre que celle active 2026-10-27 07:02:21 +00:00
Khawar Zamman Wani 761c46c56e perf(selection): combine marquee additions and subtractions sparsely 2026-10-27 12:15:33 +05:30
dotCooCoo f3afeaaf54 Refresh the open Print dialog after spooler contention ends
Retry printer enumeration after a busy result and restore the available printer controls without reopening the dialog. Cover opening and drawing the dialog while the spooler is held, then drawing it after release.
2026-10-26 23:39:59 -07:00
dotCooCoo e670397fe0 Keep uncached printer listings responsive while the spooler is busy
Return an empty or unsupported result when the spooler lock is held and no matching cached printer list exists. Preserve the source-specific cache and cover empty and mismatched caches with regression tests.

Merge current main and move the Print dialog changes into its extracted modules.
2026-10-26 23:30:52 -07:00
Khawar Zamman Wani 67172a9d08 Merge origin/main into fix/6501-multi-layer-free-transform 2026-10-27 11:57:10 +05:30
Khawar Zamman Wani ec1ca061ef Merge origin/main into fix/8169-huge-tiff-open 2026-10-27 11:56:24 +05:30
Khawar Zamman Wani 26d0b9c41c Merge origin/main into select-mask-workspace 2026-10-27 11:55:36 +05:30
Khawar Zamman Wani dfcca03911 Type insertion style: keep the pending caret font across Backspace and Delete 2026-10-27 11:17:59 +05:30
Khawar Zamman Wani 243ecf4ce2 test(selection): use the grayscale pixel format at each depth 2026-10-27 11:01:59 +05:30
Khawar Zamman Wani e65f25fbeb perf(selection): crop Smooth and Feather command masks 2026-10-27 10:56:00 +05:30
aiongg 7ac7b8b106 refactor(selection): take the feather reach from the blur (#9802)
The feather's ⌈3σ⌉ truncation radius was written out in the blur and again in two engine callers: the windowed marquee and lasso feather (#9794) and the canvas-edge padding of Select › Modify › Feather. selection::feather_reach returns it from the blur's own σ rules, and both callers use it, so a change to the blur's reach can't leave them behind. Output is unchanged; a test pins that the feather leaves everything past its reach at zero.
2026-10-27 01:07:05 -04:00
aiongg 805ed134e4 Merge pull request #9697 from wanikhawar/perf/selection-morphology
Expand, Contract and Border: crop to the selection, up to 40× faster on small selections
2026-10-27 00:56:40 -04:00
aiongg a27436adcb Merge main into perf/selection-morphology
Resolves the move of crates/engine/src/selection_cmds.rs to cmd/selection_cmds.rs: the two hunks apply at the new path, and modify_window.rs with its tests moves under cmd/selection_cmds/.
2026-10-27 04:27:45 +00:00
Khawar Zamman Wani f15c93ce73 Merge origin/main into pen-path-operations 2026-10-27 09:49:45 +05:30
Khawar Zamman Wani ba43eb3ea5 Merge origin/main into save-for-web-webp 2026-10-27 09:44:59 +05:30