Commit Graph
10929 Commits
Author SHA1 Message Date
Martin BallandClaude Opus 5.5 b28623800b build: pin craft-i18n 77873ea (craft-i18n#209 merge)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:46:46 +00:00
Martin BallandClaude Opus 5.5 60b815aa6e Merge origin/main into craft-i18n-cutover
Keeps the deletion of the in-repo catalogs. #9144 added Scroll All
Windows translations to 26 of them; craft-i18n has not synced them yet,
so the label shows in English until the next re-sync and re-pin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:46:04 +00:00
Martin BallandClaude Opus 5.5 629a97bc06 test(i18n): run the English half of four catalog-guarded tests
The guard skipped catalog-independent checks too; they now run in every
build and only the translated language waits for the catalogs. The
Arabic layout test reads no catalog and runs unguarded, as on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:43:24 +00:00
Martin BallandClaude Opus 5.5 2d9212622e docs(i18n): Vietnamese is complete_menus; qualify the missing-row promise
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:43:23 +00:00
Martin BallandClaude Opus 5.5 191043ad5b xtask(i18n-report): list unresolved languages, report unreadable catalogs
A registered language without a photocraft.tsv is listed apart instead of
showing 0% with every key missing, and a catalog that exists but can't be
read is an error naming the file rather than a silent gap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:43:23 +00:00
Martin BallandClaude Opus 5.5 4b21825961 fix(i18n): own @id rows by text, keep app.language.sr, check the registry
- An @id translation counts as PhotoCraft's only when it is the text of
  photocraft.tsv's own row, so a malformed own row craft-i18n skipped
  can't let the shared catalog's row for that id through.
- app.language.sr still switches (to sr-latn), as saved prefs already do.
- With catalogs embedded, every registered language must have one.
- Hindi plural fixture covers n = 0 (one).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:43:23 +00:00
Martin BallandClaude Opus 5.5 672e306d50 docs(attribution): ship craft-i18n's copyright notice in NOTICE
The embedded translations are MIT OR Apache-2.0; MIT needs the upstream
copyright line, so NOTICE carries it and ATTRIBUTION points there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:33:32 +00:00
Martin BallandClaude Opus 5.5 015f3806ec docker: embed the craft-i18n translations at craft-i18n.rev
COPY . . used to bring the in-repo catalogs; the builder now fetches the
pinned craft-i18n commit and builds with CRAFT_I18N_DIR and
CRAFT_I18N_REQUIRED=1, so the image is not English only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:32:16 +00:00
Martin BallandClaude Opus 5.5 667e83fd11 test(i18n): guard the remaining non-English lookups on the catalogs
Five tests unwrapped a non-English Lang (or fell back to the system
language) without craft-i18n; they now skip those languages via
needs_catalogs() and keep their English cases. Help search drops a silent
early return for the same guard.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:30:48 +00:00
David Mann 6cb32d2759 Merge pull request #12354 from RickiNano/fix/cam-no-pixels-alert-12192
Content-Aware Move: warn "No pixels are selected." for a drag with no area (#12192)
2026-11-08 23:30:29 +01:00
David Mann 3ef7bd1183 Merge pull request #12277 from hectorviov/fix/eraser-range-alerts
Eraser: Opacity, Flow and Smoothing out of range show the Closest value inserted alert (#11938)
2026-11-08 23:29:40 +01:00
David Mann 6883520bcf Merge pull request #12383 from rmsff/fix/healing-reset-tip-12099
fix(ui): Reset Tool gives the Healing Brush a 19 px hard tip at 25 % spacing (#12099)
2026-11-08 23:29:29 +01:00
David Mann a2cae35d4e Merge pull request #7809 from andeecollard/codex/macos-shortcuts
Use standard macOS Settings, Hide and Minimize shortcuts
2026-11-08 23:29:18 +01:00
Martin BallandClaude Opus 5.5 786b45a8a5 build: pin craft-i18n 2757062 (sync branch head, photocraft#12357 keys)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:29:10 +00:00
Martin BallandClaude Opus 5.5 45effdce12 test(i18n): check Layer Via and rasterize-prompt keys in the craft-i18n catalogs
Both tests walked src/i18n/*.tsv, which this branch deletes: the Layer Via
count would fail and the rasterize check passed on no files. They now read
the embedded catalogs, skip commented rows, and skip without craft-i18n.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:29:10 +00:00
David Mann d9e46405b6 Merge pull request #12329 from rmsff/fix/type-tool-locked-layer-alert-12040
fix(ui): a Type tool click on a Lock All text layer shows the locked alert (#12040)
2026-11-08 23:29:05 +01:00
David Mann a33af67a9c Merge pull request #12312 from tjbbjt/fix/free-transform-stalls
Free Transform: redraw only what the box changes; prepare large layers as a job
2026-11-08 23:28:49 +01:00
David Mann f8c11762e7 Merge pull request #9144 from dotCooCoo/feat/hand-scroll-all-windows
Hand tool: Scroll All Windows, or Shift while dragging, scrolls every shown document
2026-11-08 23:28:38 +01:00
Martin BallandClaude Opus 5.5 dd39514ef0 Merge origin/main into craft-i18n-cutover
Keeps the deletion of the in-repo catalogs; #12357's Layer Via Copy/Cut
rows are in craft-i18n.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:28:32 +00:00
David Mann 6c610a73f6 Merge pull request #9981 from ljkx/feat/smart-sharpen-canvas-preview
Filter dialogs: a click on the image centres the preview window (#9648)
2026-11-08 23:28:27 +01:00
David Mann 5594d18d18 Merge origin/main into feat/hand-scroll-all-windows 2026-11-08 22:24:12 +01:00
David Mann 0832f01bb7 Merge origin/main into feat/smart-sharpen-canvas-preview 2026-11-08 22:24:00 +01:00
David Mann 70c0911d4e Merge pull request #12399 from davidmann4/fix/12397-wand-seed-tests-antialias
Magic Wand seed-outside tests expect the measured Anti-alias fringe, main green again (#12397)
2026-11-08 21:57:33 +01:00
David Mann dff5d29584 Merge remote-tracking branch 'origin/main' into fix/12397-wand-seed-tests-antialias 2026-11-08 21:03:43 +01:00
David MannandClaude Opus 5.5 bfe5d2a671 Magic Wand seed-outside tests: keep Anti-alias on, expect the measured fringe (#12397)
Instead of turning Anti-alias off, the tests keep the default setup and
expect the reference application's measured results (#11776, #11779):
the selection ends at 381, Subtract at 219, Intersect runs 219-381.
Suggested by hectorviov on #12399.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 21:03:37 +01:00
David MannandClaude Opus 5.5 4e43c23e43 Magic Wand seed-outside tests: Anti-alias off, so they test the modes with hard edges (#12397)
#12146 gives near-matching neighbours a soft fringe when Anti-alias is on.
The #11848 tests left Anti-alias at its default and expected exact column
bounds, so main's engine tests failed (381 instead of 380).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 20:31:42 +01:00
David Mann a17acfa7a7 Merge pull request #12049 from DuBearte/fix/11897-clear-on-background
Brush: Clear on the Background paints as Normal and the Mode reads Normal
2026-11-08 20:16:11 +01:00
David Mann 3ef886c2e0 Merge pull request #12382 from TrevorBrown-dev/fix/layer-via-copy-capital-12357
Menus: Layer Via Copy and Layer Via Cut with a capital V, as in the reference (#12357)
2026-11-08 20:10:52 +01:00
David Mann 8acd45bfa9 Merge pull request #12298 from TrevorBrown-dev/fix/patch-destination-selection-12119
Patch: in Destination mode the selection moves with the patch (#12119)
2026-11-08 19:56:56 +01:00
David Mann 4e5f150eb4 Merge pull request #12146 from hectorviov/fix/wand-antialias-fringe
Magic Wand: Anti-alias keeps the region whole and softens only near-matching neighbours (#11776)
2026-11-08 19:49:41 +01:00
David Mann 5b0c31fc47 Merge pull request #11845 from mzuniga37/fix/11770-count-click-shows-count
Count tool: adding a marker turns View > Show > Count back on (#11770)
2026-11-08 19:49:27 +01:00
David Mann f235e9f30c Merge pull request #12154 from davidmann4/fix/11902-bg-eraser-decontamination
Background Eraser: partly erased pixels lose the sampled colour's tint (#11902)
2026-11-08 19:34:28 +01:00
David Mann 83e2172336 Merge pull request #11848 from DuBearte/fix/11779-wand-seed-outside
fix(engine): Magic Wand Subtract and Intersect grow from the seed through the selection (#11779)
2026-11-08 19:33:29 +01:00
David Mann fa41efebc5 Merge pull request #9348 from VoiceLessQ/pattern-preview-wrap-tools
paint: 12 more painting tools wrap across the canvas edges in Pattern Preview (#8883)
2026-11-08 19:22:34 +01:00
David Mann 9eb2abcf33 Merge pull request #9396 from kavishkashehan726-sudo/fix/9356-pen-continue-path
Pen: carry on a shape's or vector mask's open path, and show the cont…
2026-11-08 19:22:19 +01:00
David Mann 40c310dfa3 Merge pull request #5224 from augrclk/fix/brush-spacing-row
Brush Settings: combine the Spacing checkbox and percentage header
2026-11-08 19:22:06 +01:00
RickiNano bf330293cb Content-Aware Move: exact 8-bit rounding and a bounded no-pixels scan (#12192)
Review follow-up. A pixel counts as selected exactly when the selection's
coverage8 stores it nonzero: the least such coverage is found once by
bisecting the f32 bits, so the scan stays one compare per pixel.

The scan no longer costs more than the select.lasso it replaces: strips
start at 64 rows and double up to about 4 MP, and each strip is checked
in parallel, branch-free blocks (sequential on wasm). A corner-to-corner
line on 7360 x 4912 now takes 25-32 ms (was 65-73 ms; select.lasso took
23-27 ms). A lasso that selects is still answered after the first strip.

Adds a test for a lasso over pixel centres with Anti-alias off.
2026-11-08 18:59:50 +01:00
RickiNano e9d9c2a18c Content-Aware Move: decide "no pixels" by the lasso's own coverage (#12192)
Review follow-up. The check rasterizes the lasso as select.lasso does
(polygon_window over the canvas, kept from 1/255 as the selection stores
it) instead of a half-pixel area threshold. A tiny anti-aliased lasso that
covers part of a pixel selects it as before, and a thin lasso between
pixel centres without anti-aliasing now warns instead of adding an empty
Lasso step. Only the lasso's bounds are rasterized, 64 rows at a time,
stopping at the first selected pixel.

The Don't show again test now checks what reaches the preference store
and that a restart reads it back.
2026-11-08 18:59:50 +01:00
RickiNano 85c70cab19 Content-Aware Move: warn "No pixels are selected." for a drag with no area (#12192)
With no selection, a Content-Aware Move drag that encloses no area (a
click or a straight line) now opens the alert "No pixels are selected."
with OK and "Don't show again", instead of silently running select.lasso
on an empty polygon. No History state is added and nothing is selected.
A drag that encloses an area, a drag with a selection, and the Lasso tool
keep their behaviour.

"Don't show again" is a small reusable addition to the app's Error alert
(dialogs/dont_show_again.rs): the alert carries the dialog-preference key
it sets, and closing it with the box ticked keeps {"skip": true} there.

Fixes #12192
2026-11-08 18:59:50 +01:00
Hector Villarreal a01c8f8618 Eraser range alert tests: a real toolbar click after a typed 150 alerts once and switches tools (CodeRabbit review on crates/ui-egui/src/eraser_range_alert_tests.rs:147) 2026-11-08 11:54:12 -06:00
71acb4c47e native menu: test that an imported .kys set owns the system keys it binds (#7809)
Review on #7809 asked for coverage of imported .kys bindings. The set moves
Cmd+M to Levels and gives Fill Cmd+, as its second key; the menu bar shows
Cmd+M on Levels only, Minimize keeps Ctrl+Cmd+M, Settings yields Cmd+, and
the clash is reported. Fails without app_layout's dispatch ownership pass.

Co-Authored-By: andeecollard <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 18:51:44 +01:00
David Mann 4e0b455683 Merge remote-tracking branch 'origin/main' into pr-7809
# Conflicts:
#	crates/ui-egui/src/menus/native_menu.rs
2026-11-08 18:51:35 +01:00
David Mann 6f6db07478 Merge remote-tracking branch 'origin/main' into pr-12154 2026-11-08 18:50:05 +01:00
Trevor BrownandClaude Sonnet 5.5 76ad52bf47 Patch Destination: the rectangle check is capped and scans in bands (#12119)
Cause: is_hard_rect read selection coverage over the selection's own content bounds in one buffer. After a transform those bounds can reach far past the canvas, while the patch-size guard only measures the on-canvas part, so a huge mostly-off-canvas selection could stall or exhaust memory.

Fix: is_hard_rect now calls is_hard_rect_within with MAX_PIXELS (the patch's own cap); bounds over the cap are not a hard rectangle and the selection stays in place. Otherwise coverage is scanned in 64-row bands, stopping at the first pixel below 1.0.

Verified: new test covers a limit below and at the pixel count and a hole in the third band; patch (25) and retouch (126) lib tests pass, clippy -D warnings and fmt clean.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove and briefed; Sonnet 5.5 wrote at medium
2026-11-08 12:38:04 -05:00
Serikov Roman bbfa1758f6 fix(ui): Reset Tool gives the Healing Brush a 19 px hard tip at 25 % spacing (#12099) 2026-11-08 20:32:54 +03:00
David Mann f439a33ce5 Merge remote-tracking branch 'origin/main' into pr-12049 2026-11-08 18:20:55 +01:00
b5501b9bd1 PR #12049: keep a held ~ erasing on the Background, keep Clear on a locked one
The engine turned every "mode": "clear" stroke on the Background into
Normal, so a held ~ painted the foreground there instead of erasing to
the background colour as on main. The options bar already turns a chosen
Clear off at the press, so the engine conversion was not needed: drop it
and keep the one check in clear_off_on_background.

A Background with locked pixels refuses the stroke, so a chosen Clear now
stays chosen there. The "Tool state machine" doc line is back on
tool_event.

Co-Authored-By: DuBearte <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 18:20:55 +01:00
FredApps e564137b23 Merge pull request #12275 from Triwarr/pdf-editable
PDF: opt-in editable import (paths and text)
2026-11-08 18:13:39 +01:00
David Mann bb7a1289b0 Merge remote-tracking branch 'origin/main' into pr-12049 2026-11-08 18:05:36 +01:00
Hector Villarreal e9f62aaef4 Eraser range alert tests: the leading-zero draft, a caption scrub past 100, and no alert on a tool switch (eliets2 review on crates/ui-egui/src/eraser_range_alert_tests.rs) 2026-11-08 11:01:17 -06:00