Commit Graph
872 Commits
Author SHA1 Message Date
Claude 09f2f803df Merge pr/1607 2026-10-09 09:59:20 +00:00
Claude 3d4f2fceaa Merge pr/1712 2026-10-09 09:59:19 +00:00
Claude 9b338dacd8 Merge pr/1722 2026-10-09 09:59:19 +00:00
Claude fa0ce3e71d Merge pr/1710 2026-10-09 09:59:18 +00:00
Claude 1af697beb8 Merge pr/1709 2026-10-09 09:59:18 +00:00
Claude a9f0e2255f Merge pr/1708 2026-10-09 09:59:17 +00:00
Claude 23e498eae5 Merge pr/1707 2026-10-09 09:59:16 +00:00
Claude 637dd2aabf Merge pr/1705 2026-10-09 09:59:16 +00:00
Claude 8ad3c4309a Merge pr/1704 2026-10-09 09:59:15 +00:00
Claude f09114a012 Merge pr/1703 2026-10-09 09:59:15 +00:00
Claude 63d80ec289 Merge pr/1702 2026-10-09 09:59:14 +00:00
Claude 2173334ec5 Merge pr/1701 2026-10-09 09:59:14 +00:00
Claude 0ee50e0812 Merge pr/1699 2026-10-09 09:59:13 +00:00
Claude e0e7bd2bd1 Merge pr/1698 2026-10-09 09:59:13 +00:00
Claude 5e52ed81b0 Merge pr/1697 2026-10-09 09:59:12 +00:00
Claude 206a04b6d0 Merge pr/1696 2026-10-09 09:59:11 +00:00
Claude 30ed1584d3 Merge pr/1695 2026-10-09 09:59:11 +00:00
Claude 90810e6c8e Merge pr/1694 2026-10-09 09:59:10 +00:00
hideoneric d75609f4f5 fix(compose): don't clip Add and Divide at 1 in 32-bit documents
- Linear Dodge (Add) and Divide keep values above 1 in 32-bit float documents, clipped only at f32::MAX. Integer depths still clip at 1.
- CPU: add psblend::HDR and generic::blend_rgb_hdr / blend_channel_hdr; render sets the flag per document depth.
- GPU: add the F_HDR pass flag, and compose.wgsl uses it for the same clip bound.
- Non-separable modes are unchanged.
- Tests: colour unit tests, compose depth tests, and the GPU parity test float_documents_blend_past_white.
2026-10-09 11:44:25 +02:00
Claude 2515fa7cee Linux display server: compile read_display_server on Linux (and tests) only
macOS and Windows clippy rejected it as dead code (-D warnings): its only caller in main.rs is
#[cfg(target_os = "linux")]. Also puts read_rendering_prefs' doc line back above it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA
2026-10-09 16:06:12 +07:00
Claude 770f6d49b8 scorecard: regenerate for the display-server preference (141 settings)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA
2026-10-09 16:06:12 +07:00
Gert Pellin a132e37ee1 Linux: display server preference (X11 / XWayland) so file drops work
On a Wayland session dropping a file on the window does nothing: winit
0.30 (eframe 0.36) has no Wayland drag and drop (#386). The only way
out was launching with `WAYLAND_DISPLAY= photocraft`.

Add Preferences › Performance › Linux display server (auto | x11,
applies at next launch), direction 2 in #386. With x11, main.rs asks
winit for its X11 backend through eframe's event_loop_builder hook
(EventLoopBuilderExtX11::with_x11), so the window runs through XWayland
and drops work. No environment is modified (no unsafe). It only applies
when an X server is reachable (DISPLAY set); otherwise winit's default
is kept, so a missing XWayland can't stop the app from starting. Other
platforms ignore it.

The Wayland drop notice now points at the preference instead of the
environment variable (all catalogs updated).

Tests: the startup reader (x11, auto, unknown value, wrong type, broken
JSON, missing file), the notice text, prefs_usage, label translations.
Verified on KDE Plasma 6 Wayland: with x11 the window is an X11 window
(XWayland) and dropping a NEF from Dolphin opens it.
2026-10-09 16:06:12 +07:00
Claude 165226b390 fmt: import order in paint_mouse.rs (#1629)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA
2026-10-09 16:06:07 +07:00
Adam Gincel 35c323c9de feat(ui): keep a brush per painting tool, as in Photoshop (#218)
The brush was one global session setting (only its smoothing was per tool), so
switching tools carried the size, hardness, mode, opacity, flow and dynamics
over. sync_tool_smoothing becomes sync_tool_brush: it saves the session brush
for the outgoing tool and loads the new tool's on every switch. UiState's
smoothing_tool/tool_smoothing become brush_tool/tool_brushes (serde default, so
saved UI state still loads), and the session's own fields (colours, erase flag,
stroke seed) are never carried across a swap.

Called from the frame start, the options bar before the brush chip, both canvas
stroke paths, ui.set {tool} (so tool + brushSize in one call sets the new tool's
size) and select_tool_preset. A tool seen for the first time inherits the brush
in hand at Photoshop's 10 % smoothing.

Tests: each_tool_keeps_its_own_brush, the renamed per-tool smoothing test,
per-tool coverage in the ui.set brushSize test, and pencil_tests switching tools
before setting the smoothing as the options bar does.
2026-10-09 16:06:07 +07:00
McClabe 9b7349d0e5 Keep legacy PSD text origins visible when editing (#1560)
* fix: keep legacy PSD text origins visible when editing

* fix: normalize legacy TySh origins on import
2026-10-09 16:06:03 +07:00
Brennan StehlingandClaude Opus 5.5 22ba13b47b macOS: quit with terminate:, not by closing the window (#1575, #1458) (#1624)
Since the native menu bar (#894), Quit runs file.exit, which closes the window through eframe
while AppKit's run loop is still going. AppKit's Touch Bar finder then removes a KVO observer from
the already-deallocated view in the next display cycle (`-[_NSTouchBarFinderObservation
invalidate]`): an uncaught exception that aborts on macOS 27 (#1458) and leaves a windowless app
on macOS 26 (#1575). The window's close button took the same path before #894; ⌘Q used winit's
default menu, which calls terminate:.

Every way of leaving (Quit, ⌘Q, the close button, the OS quit event, app.quit) arrives at
guard_window_close as a close request. Once leaving is settled (nothing unsaved, or the prompt
answered) it now runs Services::quit when the platform has one, keeping the window open for it.
On macOS that is -[NSApplication terminate:], scheduled on the main queue so winit is out of its
event handler and eframe's exiting hook still saves the window layout.

Reproduced in a macOS 26.6.2 VM with XCUITest: on main, Quit, Quit with a document, ⌘Q and the
close button abort with the #1458 stack; with this change all of them exit, write no crash report
and save ui.ron.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-09 16:05:58 +07:00
UnemarsandClaude Opus 5.5 a273d3b27d Layers panel: ⌥-click on the line between layers, measured against Photoshop (#1642)
#1066 added the gesture; this makes it behave as Photoshop 25.4 does (measured by sweeping
⌥-hover and ⌥-click a pixel at a time across each line, results read back by script):

- the line takes the pointer from 3 px above it to 5 px below it (was ±3);
- a release frees the layer above the line together with the clipped layers stacked above it,
  in one history step, and makes it the active layer (was: that layer alone); a clip keeps the
  active layer, as before;
- clipping and releasing have their own cursors: PhotoCraft's original clip-below (a hooked
  arrow onto the layer below) and clip-release (the same arrow with a small "no" badge),
  replacing Lucide corner-right-down for both.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-09 16:05:52 +07:00
StreetblockandGPT-6 576811263e Fix combined-mask cache invalidation after pixel edits (#1645)
Co-authored-by: GPT-6 (Codex) <[email protected]>
2026-10-09 16:05:48 +07:00
llduyll10andClaude Opus 5.5 c2a890d2a7 Layered TIFF: keep blending ranges as bytes in Intel-order files
Photoshop writes the per-channel blend-if ranges byte for byte in either byte
order (an II TIFF holds the defaults as 00 00 ff ff). The transcoder swapped
them as u32s, turning every range into ff ff 00 00, which hides every pixel of
the layer: a Photoshop layered TIFF opened with an empty canvas.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 15:56:23 +07:00
MarekSpodBiedry cac298e2b1 fix(ui): the Navigator keeps its image during a live paint stroke (#1631) 2026-10-09 10:42:05 +02:00
MarekSpodBiedry 0f042fbabf fix(engine): Move tool Auto-Select clicks through fully locked layers (#1641) 2026-10-09 10:41:35 +02:00
MarekSpodBiedry ce84daef3d docs: README tool count and list match Tool::ALL (#996) 2026-10-09 10:41:23 +02:00
MarekSpodBiedry b58d4c70fc fix(ui): the Photoshop-style status bar shows messages with no document open (#1567) 2026-10-09 10:40:22 +02:00
MarekSpodBiedry 2c13d4e640 fix(scorecard): mark the #204 preference rows done; their readers, allowlist and test exist (#1002) 2026-10-09 10:40:11 +02:00
MarekSpodBiedry 378196a9ed fix(control): ui.inspect reports the documented view preferences (#1003) 2026-10-09 10:39:44 +02:00
MarekSpodBiedry f073ea9978 fix(xtask): the scorecard's performance summary no longer counts not-run scenarios as tracked (#947) 2026-10-09 10:39:26 +02:00
MarekSpodBiedry 3dbd437735 fix(io): keep a PSD Anno block that cannot be read instead of deleting it on save (#944) 2026-10-09 10:37:50 +02:00
MarekSpodBiedry 7bb60b3e82 fix(ui): Keyboard Shortcuts dialog rejects a malformed overrides map instead of wiping shortcuts (#956) 2026-10-09 10:36:25 +02:00
MarekSpodBiedry f958326228 fix(compose): a Precise inner glow from the centre is no longer blank (#966) 2026-10-09 10:35:38 +02:00
MarekSpodBiedry 996eb165c7 fix(engine): layer bounds drop the area a selection transform moved pixels out of (#1097) 2026-10-09 10:34:22 +02:00
MarekSpodBiedry ab94d4ffe1 fix(automation): bridge doc_save without path writes back like headless (#946) 2026-10-09 10:34:09 +02:00
MarekSpodBiedry 94b38bd092 fix(engine): prefs.set and prefs.reset apply the text blending gamma (#987) 2026-10-09 10:33:51 +02:00
MarekSpodBiedry 85757ea359 fix(engine): Layer via Copy and Cut deselect, as Photoshop does (#1096) 2026-10-09 10:33:41 +02:00
MarekSpodBiedry c4e8f50c57 fix(io): a CMYK Channel Mixer using the black source stays raw in CMYK documents (#940) 2026-10-09 10:33:26 +02:00
callmeBallochandClaude Opus 5.5 d10d782bc4 AF.3: say which sample set the semantics were fitted on
The previous commit put 189 in both places, but the thumbnail fitting
was done on 176 documents; the set grew to 189 afterwards and the
reader opens all of them. State both, so neither number is overclaimed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GQPh8UDgMyARR5Hat9UchC
2026-10-09 07:44:22 +00:00
callmeBallochandClaude Opus 5.5 6deb1e0934 AF.3: attribute the Affinity corpus, one sample count, run it on --changed
From the review on storytold/photocraft#1607:
- ATTRIBUTION.md gets a row for corpus/affinity: the four upstreams at
  their pinned commits, with authors and licences (CC0-1.0, and MIT by
  Nick Beeuwsaert, Jeremy Cantu and DAIKI).
- The README said 176 sample documents in the provenance and 189 in the
  limits. It now says 189 distinct public documents in both places; the
  reader opens all of them (298 files with duplicates, no failures).
- crates/affinity/ joins CRITICAL, so test-corpus --changed runs the
  corpus when the reader changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GQPh8UDgMyARR5Hat9UchC
2026-10-09 07:41:49 +00:00
callmeBallochandClaude Opus 5.5 2b279ba61b Merge storytold/main into AF.3 native Affinity import
No conflicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GQPh8UDgMyARR5Hat9UchC
2026-10-09 06:38:46 +00:00
callmeBallochandClaude Opus 5.5 a8d7c6ef3f AF.3: put the Affinity fuzz targets and corpus back in CI
The maintainers approved the new crate, its fuzz targets and the corpus
upstreams in principle (storytold/photocraft#1607), so this undoes the
interim opt-in: ci.yml fuzzes preview and import_preview again, corpus
--all fetches the Affinity set, and its test runs under the normal
corpus feature. The provenance section stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GQPh8UDgMyARR5Hat9UchC
2026-10-09 06:38:40 +00:00
shmuelbiller1 ec350d64ae fix(engine): finish background job bookkeeping on its document (#1572)
* fix(engine): finish background job bookkeeping on its document

* test(engine): cover Fade state after switching tabs during background job

* style(test): format background job regression assertions

* style(engine): follow rustfmt for background-job regression test
2026-10-09 13:24:33 +07:00
shmuelbiller1 83d5c5436d fix(autosave): report background write failures and retry unchanged revisions (#1577)
* fix(format): expose asynchronous autosave completion and enqueue errors

* feat(ui): accept nonblocking background autosave outcomes

* fix(desktop): pass worker autosave results to shell

* fix(ui): confirm autosaves only after successful writes and retry failures

* test(desktop): retry failed background autosave with unchanged revision

* test(format): report async autosave write failure and successful retry

* style(ui): compact autosave iterator chains under project rustfmt width

* style(format): apply rustfmt for autosave completion iterator

* fix(format): simplify async autosave completion types for Clippy

* test(format): allow slow Windows autosave worker time to finish

* test(desktop): use bounded wall-clock deadlines for background autosave checks

* style(format): match rustfmt for autosave worker signature
2026-10-09 13:24:30 +07:00