Commit Graph
2701 Commits
Author SHA1 Message Date
David Mann 7b4b960faf Merge remote-tracking branch 'origin/main' into feat/history-snapshot-options
# Conflicts:
#	crates/engine/src/lib.rs
#	docs/scorecard.md
2026-10-17 01:09:38 +02:00
David Mann 0739ff48c5 Merge remote-tracking branch 'origin/main' into fix/4017-huge-new-document
# Conflicts:
#	crates/ui-egui/src/gpu_canvas.rs
#	docs/scorecard.md
#	perf/budgets.toml
2026-10-17 01:07:37 +02:00
Jason Xiang f61ed26e14 fix(io): honor version-aware OpenRaster group isolation (#5872) 2026-10-16 17:02:23 -06:00
Vlad Grankovsky 96dcb10fb5 Fix grayscale Levels and Curves dialog targeting 2026-10-17 00:12:20 +02:00
MarekSpodBiedry 4c730d3889 Object Finder: hovering with an empty active layer shows the status-bar hint (#6549) 2026-10-17 00:10:17 +02:00
David MannandClaude Opus 5.5 8fc26b29de Merge main into feat/auto-219-8-panel-command-check
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:51:37 +02:00
David MannandClaude Opus 5.5 01dbccee18 Merge main into feat/tool-213-7-live-retouch
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:42:01 +02:00
Higgs32584andClaude Opus 5.5 7b32097e2a Intel Iris Xe on DX12: no more red blocks in brush previews and tool icons (#6790)
wgpu-hal 30 creates Iris Xe textures as committed resources (its
gfx-rs/wgpu#3552 workaround) with D3D12_HEAP_FLAG_CREATE_NOT_ZEROED, and
egui-wgpu fills each new texture with a single copy. On this driver the
copy leaves 4x4 blocks of all-zero texels showing stale memory, so the
empty corners of Brush Preset picker strokes and tool icons show freed
textures' pixels (often red).

ui-egui's new texel_guard plugin rewrites fully transparent texels in
each frame's texture uploads as premultiplied (0, 0, 0, 1) before eframe
renders them (under one 8-bit level of difference). The desktop app
installs it only for DX12 on "Iris(R) Xe", the same adapter test wgpu
uses; PHOTOCRAFT_TEXEL_GUARD=1/0 forces it on or off.

The gpu example zero_block_probe reproduces the driver bug without the
UI: 630/1500 egui-style uploads read back wrong, 0/1500 with the guard.
Driving the release app (tool cycling, picker rescaled): 6/40
screenshots with red blocks before, 0/120 after.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 16:40:42 -04:00
Tom InglingandClaude Opus 5.5 b46f93b494 feat(color): Color Settings › Spot dot gain for spot channel previews
Photoshop's Color Settings has a Spot working space (default Dot Gain 20 %) that its
preview of spot channels and Multichannel inks adds, so a 50 % dot shows as it prints on
press. PhotoCraft previewed spot inks linearly.

- `spotDotGain` in `edit.colorSettings` (0–49 %, default 20), saved with the preferences
  and honoured by prefs.set / prefs.reset, like blendTextGamma.
- compose: `multichannel::set_spot_dot_gain` / `dot_gain`; the ink preview prints each
  channel through 1 − (1 − v)^γ with γ chosen so a 50 % dot shows at 50 % + gain (the curve
  family of the built-in Dot Gain 20 %-compatible gray). Matches Photoshop's Custom Dot Gain
  curve for 50 % → 88 % within 1 % across the range.
- ui: spot overlays in the Channels view use it; the canvas display key and the channel
  view key include it, so changing the setting redraws open documents.
- Process-wide like the text gamma, so the tests that change it have their own binaries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 16:39:05 -04:00
Finn Newick 82aa300b51 Merge remote-tracking branch 'origin/main' into fix/bundle-save-lock 2026-10-16 21:34:43 +01:00
David MannandClaude Opus 5.5 824cbdb022 Merge main into docs/scorecard-stale-rows-2
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:19:08 +02:00
David MannandClaude Opus 5.5 1b0e69d2f6 Merge main into feat/tool-214-12-shape-feather
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:07:55 +02:00
David MannandClaude Opus 5.5 83afd80a87 Merge main into feat/ui-217-4-save-in-background
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:01:22 +02:00
David MannandClaude Opus 5.5 1336022624 Merge main into perf/p25-blur-cancel
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:58:23 +02:00
David MannandClaude Opus 5.5 78ae69a456 Merge main into feat/file-215-2-noparam
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:55:46 +02:00
David MannandClaude Opus 5.5 7977bed5c4 Merge main into feat/ui-217-4-animated-zoom
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:55:27 +02:00
David MannandClaude Opus 5.5 362f7168ee Merge main into feat/file-215-2-blur
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:53:52 +02:00
David MannandClaude Opus 5.5 e361737258 Merge main into feat/file-215-2-stylize-pixelate
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:53:31 +02:00
David MannandClaude Opus 5.5 5990376d1c Merge main into feat/file-215-2-other
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:50:49 +02:00
David MannandClaude Opus 5.5 1af75eef72 Merge main into feat/file-215-2-sharpen-noise
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:50:26 +02:00
David MannandClaude Opus 5.5 6199c1e04d Merge main into feat/file-215-2-wind-extrude-tiles
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:50:14 +02:00
David MannandClaude Opus 5.5 c751ef0ce8 Merge main into feat/file-215-2-mezzotint-halftone
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:47:48 +02:00
David MannandClaude Opus 5.5 de6b798aa2 Merge main into feat/ui-217-4-columns-unit
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:29:16 +02:00
Khawar Zamman WaniandClaude Opus 5.5 dcc5387388 Merge main into feat/6000-color-panel-modes
Resolve conflicts: keep both sides' new i18n strings, combine the
ui-parity change note, regenerate docs/scorecard.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 23:32:29 +05:30
augrclkandGPT-6 388b7f2a05 Merge upstream main into fix/brush-transfer-mixer-controls
Retain both progress histories and integrate the existing Brush Settings changes with upstream. Preserve the response-curve editor, options-label scrubbing and independent preset regression tests where they overlap.

Co-authored-by: GPT-6 <[email protected]>
2026-10-16 21:01:03 +03:00
vangel76andClaude Opus 5.5 e674e1bc58 Merge upstream/main into fix/3290-filter-mask-paint
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 19:20:07 +02:00
tareqziad1998andClaude Opus 5.5 8dcc64bd2f Type: paragraph direction buttons in the Paragraph panel and options bar (TYPE-218-2, #218)
The engine has had TextDirection (Auto / LTR / RTL) and type.setStyle's "direction" key, but
nothing in the UI set it. Now:

- Window > Paragraph and the Properties Paragraph section have a row of three buttons under the
  alignment row: Automatic, Left-to-right and Right-to-left paragraph direction. They set the
  selected layers' direction (or the selected text's paragraphs while typing) in one undo step,
  and show the current one.
- The Type options bar has the same three buttons after its alignment buttons. Like alignment,
  they also set the direction new type starts with (new tool option `type_direction`, "auto" by
  default, reset with the tool's other options).
- The glyph is drawn (a pilcrow over an arrow), so no new icon asset.
- The three tooltips are translated in all 20 catalogs (every_tl_literal_is_translated).

Tests: paragraph_direction_buttons_set_and_show_the_direction and
options_bar_direction_sets_selected_layers_and_new_type.

TYPE-218-2 goes from missing to partial: the visual RTL caret (arrow keys moving on screen
rather than in logical order) is still to do. scorecard/type.toml, docs/scorecard.md and
docs/gaps.md (G8) are updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WpQQNxTPBzSLvgAhX27Vtv
2026-10-16 15:58:53 +00:00
David MannandClaude Opus 5.5 2f21722eb4 Content-Aware Move: live preview for large selections (TOOL-213-4, #6680)
The live preview only covered selections up to 256x256 px; larger ones (the
command takes up to 16 M) errored, the UI remembered the failure and showed
nothing until release.

Engine: a preview whose selection (or landed area) is over 256x256 is now
solved on a scaled-down copy of the area around the selection and where it
lands (area-average resize of the target, or of the composite with Sample All
Layers, and of the selection), on a one-layer document of its own, then
enlarged back (bilinear, float samples, so any depth) over the selection's
shape where it lands and, for a move, where it left. The landed content is
sampled through the scaled placement, so rounding the scaled offset does not
shift it. ContentAwarePreview::refine gives the full-resolution job, with the
command's own margin, so the refined preview is the command's result bit for
bit. Every step checks the JobCtx; the session is never touched; bad params
and selections over the command's limit still error. Selections within
256x256 take the unchanged path (same output as before, checked by hash
against main). The bilinear resampler used by Transform On Drop now runs its
rows in parallel (same results).

Measured (release, 24 MP 8-bit document, Ryzen 9 7950X with other builds
running): coarse preview 600x400 0.26 s, 1500x1000 0.38 s, 3000x2000 0.69 s
(256x256 full-resolution preview: 0.21 s); the exact refine takes as long as
the command (0.8 s, 4.1 s, 9.4 s).

UI: cam_preview shows the coarse result, then starts the refine as a second
cancellable job and swaps it in; a failed refine leaves the coarse result
shown, and a failed first job is still not retried.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 17:32:28 +02:00
augrclkandGPT-6 5e861d68a0 Merge upstream main into fix/brush-settings-lock-accessibility
Retain both progress histories and integrate the existing Brush Settings changes with upstream. Preserve the response-curve editor, options-label scrubbing and independent preset regression tests where they overlap.

Co-authored-by: GPT-6 <[email protected]>
2026-10-16 18:24:44 +03:00
augrclkandGPT-6 ec32464195 Merge upstream main into fix/brush-pose-tilt-axis-overrides
Retain both progress histories and integrate the existing Brush Settings changes with upstream. Preserve the response-curve editor, options-label scrubbing and independent preset regression tests where they overlap.

Co-authored-by: GPT-6 <[email protected]>
2026-10-16 18:23:34 +03:00
augrclkandGPT-6 e8ca4e9d01 Merge upstream main into fix/brush-tip-geometry-layout
Retain both progress histories and integrate the existing Brush Settings changes with upstream. Preserve the response-curve editor, options-label scrubbing and independent preset regression tests where they overlap.

Co-authored-by: GPT-6 <[email protected]>
2026-10-16 18:22:57 +03:00
augrclkandGPT-6 5f83e0064d Merge upstream main into fix/brush-scatter-axes-header
Retain both progress histories and integrate the existing Brush Settings changes with upstream. Preserve the response-curve editor, options-label scrubbing and independent preset regression tests where they overlap.

Co-authored-by: GPT-6 <[email protected]>
2026-10-16 18:22:39 +03:00
augrclkandGPT-6 1928cb95d5 Merge upstream main into fix/brush-spacing-row
Retain both progress histories and integrate the existing Brush Settings changes with upstream. Preserve the response-curve editor, options-label scrubbing and independent preset regression tests where they overlap.

Co-authored-by: GPT-6 <[email protected]>
2026-10-16 18:22:21 +03:00
Trade-MottoesandClaude Opus 5.5 8c9c5fccf8 Layer Mask Display Options: set the layer mask rubylith's colour and opacity
The rubylith (`\`, ⇧⌥-click on a mask thumbnail) was always red at 50 %. Its colour and
opacity are now Photoshop's Layer Mask Display Options: one setting for every mask, kept
across restarts and not an undo step, as Photoshop does it. They live in the preferences as
`layerMaskOverlay` (`#rrggbb`, 0..100 %, red at 50 by default) and are set through
`channel.options {"channel":"mask","color","opacity"}`, which with no fields reads them back
(prefs.set and prefs.reset work too).

In the UI, as in Photoshop: double-click the layer mask's row in the Channels panel or pick
Layer Mask Display Options… from its menu, Mask Options… on the Layers panel mask thumbnail,
or Channel Options… with the mask targeted (`\` counts). Each opens the Channel Options dialog
with just Color and Opacity.

The rubylith is still drawn over the picture as it looks, mask applied, as Photoshop draws
it. The channel view's texture key carries the options, so changing them redraws it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 14:03:46 +00:00
David MannandClaude Opus 5.5 ac8d0af24c Hue/Saturation: the Lightness track runs black, grey, white (#6539)
The Lightness slider's track in the Hue/Saturation editor (Properties
panel and dialog, which share it) ran black -> the current hue -> white.
Photoshop's Lightness track is a fixed black -> mid grey -> white ramp
whatever the Hue. lightness_track() now returns that ramp and no longer
takes the hue; the Saturation track still follows the hue. The UI-217-16
scorecard row describes the new track.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 15:00:11 +02:00
highperfocused e96f64c7d9 feat(crop): right-click on a pending crop opens the crop menu (#6561)
Photoshop opens a context menu on a pending crop frame with the ratio
presets, the saved crop presets, the overlay options and Reset / Cancel
/ Commit. PhotoCraft opened nothing.

- canvas_tool_menu: a crop menu whose ratio and preset rows route
  through the same functions as the options bar's dropdown (so the menu
  and the bar cannot disagree), the gear toggles with the same greying,
  and Reset / Cancel / Commit on the pending frame. menu_rows() renders
  the dynamic preset rows through the same path as the static menus,
  in show() and on the control channel.
- crop_ui::reset: the frame back to the whole canvas, still pending.
- canvas: the right-click opens it only on a pending frame; outside the
  image the pasteboard menu still wins; the menu closes when the crop
  stops being pending.
- Tests: 7 new (ratio fit and checkmark, gear toggles and greying,
  reset/cancel/commit, preset row, close condition, harness right-click
  routing, no menu on the untouched default frame).
- Docs: context-menu-parity Crop row, scorecard UI-217-8 note.
2026-10-16 13:53:19 +02:00
David MannandClaude Opus 5.5 1e3971413f Docs: FILE-215-2 lists Hue/Saturation smart filters as mapped (#6267)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 13:12:19 +02:00
David MannandClaude Opus 5.5 c467592211 Docs: FILE-215-2 lists Perspective Warp smart filters as mapped (#6268)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 13:12:19 +02:00
Khawar Zamman WaniandClaude Opus 5.5 2432669578 Free Transform moves every selected layer (#6501, #3384, #6096)
With several layers selected, Ctrl/Cmd+T framed and transformed only the
active layer, whatever its kind: a pixel layer moved while a type layer
beside it stayed put (or the other way round).

Engine: `edit.transform` takes `layers` and, given no `layer`, moves the
selected layers that no selected group carries, leaving out the Background,
as Photoshop does. One transform, one history step; every layer is priced
and lock-checked before any is built. Transform Again repeats on the
selection; Transform Again on a Copy keeps the active layer's frame.

UI: the box frames all of them (`begin_several`) and its preview is their
composite with styles reaching past the frame, rebuilt when an edit made
while it is open changes how they look (children of a moving group and
styles of enclosing groups included). Selected pixels are lifted per pixel
layer. The Move tool's shared Show Transform Controls frame gets handles.
Warp is greyed for several layers, and so are Distort and Perspective
while editable type is among them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T48KpM3QwGvfQxtZ1icCRq
2026-10-16 16:26:53 +05:30
abc2cb 0ab262a0e3 Merge branch 'main' into codex/github-smart-filters-usability-20261011 2026-10-16 12:20:31 +03:00
Gustavo Ziger 1735344b05 Merge main and refresh animated zoom scorecard 2026-10-16 05:37:50 -03:00
PerchAnton 567de6c7a7 fix(automation): accept canonical and configured root paths 2026-10-16 11:14:57 +03:00
funkvay-star aee633bf26 Merge remote-tracking branch 'upstream/main' into feat/levels-reset-clipping 2026-10-16 12:10:57 +04:00
Ratul Paulandkartik8dwivedi 27b2a8d447 Merge upstream main and complete UI scale review updates
Preserve main’s contributor entries and Auto scaling documentation while
retaining the intermediate fixed presets and their existing tests.

Add the four labels to the Hungarian, Serbian, Turkish, and Vietnamese
catalogs. Adopt #3396’s UI-217-9 note and UI parity/gap updates, then
regenerate the scorecard.

Co-authored-by: kartik8dwivedi <[email protected]>
2026-10-16 13:23:47 +06:00
JGF 2a952f164c Windows/Linux: open files in the running PhotoCraft instead of a second instance (#3708) (#3755)
Fixes #3708; part of #1540 (Flatpak needs its own follow-up: each sandbox has its own loopback).

A second launch hands its files to the running instance over an authenticated loopback channel (random port, 32-byte token in a private instance.json, constant-time check, bounded clients, requests and paths). Files are acknowledged only once the UI has taken them; the instance shuts the hand-off down before a CPU-compatibility relaunch; it runs only in the per-user settings mode. --new-instance and PHOTOCRAFT_NEW_INSTANCE=1 opt out.

Thanks to @MrCloudy2 (#2358), whose Linux version first handled the relaunch and per-user endpoints, and @Desayuno64 (#5273), whose shutdown flag and read deadline informed the final design.
2026-10-15 22:48:30 -07:00
denstu473 ac8e60ff2e fix(ui): preserve shape stroke settings at zero width
Keep the selected shape's stroke when width reaches zero so subsequent
width edits retain its paint and geometry settings in both UI controls.
Preserve explicit No Color removal and gesture-scoped undo behavior.

Add real-widget regressions for style retention, native persistence,
rendering, undo/redo, and deliberate stroke activation.

Fixes #6191.
2026-10-16 07:11:27 +02:00
Khawar Zamman WaniandClaude Opus 5.5 12c43aaa49 Save for Web: WebP, lossy at its Quality or lossless (part of #6391, #2415)
Save for Web (Legacy) gains a WebP format: lossy through our VP8 encoder at
the dialog's 0-100 Quality, or lossless (new `lossless` param). Translucent
pixels keep their alpha as in PNG-24 (matte when Transparency is off); Embed
Color Profile and the Metadata choice apply as for JPEG. The lossy preview
decodes the file so its artefacts show; 4-Up halves a lossy quality.

AVIF and JPEG XL from #6391 are not included.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 10:38:36 +05:30
Tanish Manku 6d3443c098 GPU memory: discrete cards aren't charged for the document; GPU Memory preference; GPU Memory Full status (#5973)
* GPU memory: a graphics card's own memory isn't charged for the document; GPU Memory preference; GPU Memory Full in the status bar

Many layers hit a cliff: past what the GPU memory budget leaves for layer pages, every edit
that redraws the whole document (opacity, visibility, a nudge) goes to the CPU compositor.
Measured on 3000x2000 full-canvas layers (RTX 5090, 31 GB RAM, Memory Usage 8 GB): 150
layers took 2.6 s per such edit, 300 layers 6 s. The budget was Memory Usage minus the
document's pixels and History, which is right where the GPU shares system memory, but a
discrete card's memory doesn't hold the document, so 150 layers of 6 MP (3.6 GB) squeezed
the budget below what they needed.

- Automatic budget: discrete adapters are no longer charged for the document's pixels
  (integrated and software adapters still are). 150 layers: 2.6 s -> 25 ms.
- Preferences › Performance › GPU Memory (MB, 0 = Automatic; performance.gpuMemoryMb) sets
  the budget outright. 300 layers with 12 GB: 6 s -> 45-72 ms.
- The status bar shows "GPU Memory Full" while the active document's layers don't fit
  (both status bar styles); hovering gives the numbers, clicking opens Preferences ›
  Performance. Its Graphics rows show the budget and what the layers need. The slow CPU
  redraw notice gives the numbers and points at GPU Memory.
- Headless: the preference is a normal pref (prefs.set), and ui.state's perf.timings
  reports gpuLayerFit {doc, needed, budget} next to gpuBudgetMb.

Next (owner-approved plan): after #5370, read the card's real limit from the driver
(wgpu memory budget thresholds) and shrink on out-of-memory; then redraw the visible
area on the GPU first when layers still don't fit.

* GPU memory: typed discrete check; the status and budget follow a GPU Memory change at once (measure_fit); perf rows P60/P61 for whole-document edits among 150 full-canvas layers under the app's budget

* GPU memory on top of #5234: memory_budget takes the card's memory (vram) and the GPU Memory value; the document's pixels are charged unless the card's own memory is known; a set GPU Memory is capped at the card's share; benches use video_memory
2026-10-15 21:22:46 -07:00
Marco Arnulfo ef46343f6b Type options: drag the "T" icon to change the font size, as in Photoshop (#6437) 2026-10-16 06:19:06 +02:00
Khawar Zamman WaniandClaude Opus 5.5 21b8d832af Hand tool: hold Ctrl/Cmd to zoom in, Alt to zoom out (#6434)
With the Hand tool selected, Cmd (Ctrl off the Mac) held is a temporary
Zoom In and Alt (or Cmd+Alt) a temporary Zoom Out, as in Photoshop: a
click steps the zoom, a drag scrubs (or draws a zoom box with Scrubby
Zoom off), the magnifier cursor shows, and letting go gives the Hand
back. Latched Window > Modifier Keys count too.

Not while Free Transform is open (Cmd is its distort key), and a
modifier pressed during a Hand press, release included, doesn't turn
it into a zoom: only a press made with the modifier held zooms.

docs/ui-parity.md: Navigation row added; Scroll All Windows and Bird's
Eye View recorded as missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 09:39:31 +05:30