Commit Graph
6330 Commits
Author SHA1 Message Date
FredApps fe2379f27f Merge approved PhotoCraft PR #7153: Smart Filters: double-clicking a Liquify filter reopens it in the Liquify workspace 2026-10-29 03:29:30 +01:00
FredApps c50539ea84 Merge approved PhotoCraft PR #6510: Automation: resolve configured root aliases for absolute paths (#6426) 2026-10-29 03:29:25 +01:00
FredApps 71e49e861a Merge approved PhotoCraft PR #6387: Video Frames to Layers: every page of a multi-page TIFF (part of #6379) 2026-10-29 03:29:23 +01:00
FredApps 63fbd96e2b Merge approved PhotoCraft PR #5870: fix(format): reject duplicate native layer identities 2026-10-29 03:29:18 +01:00
FredApps d9b7c5f7cd Merge approved PhotoCraft PR #5165: Fix: brush section selection 2026-10-29 03:29:09 +01:00
FredApps 08e35bedc1 Merge approved PhotoCraft PR #4985: feat(ui): add Shift+right-click brush mode picker 2026-10-29 03:28:59 +01:00
FredApps b426bd284b Merge approved PhotoCraft PR #4742: fix(macos): bundle photocraft-cli and resolve it from droplet scripts 2026-10-29 03:28:35 +01:00
David MannandClaude Opus 5.5 b23e90ac23 Files opened at launch report in the interface language
The command line's files open before the first frame, which is what
applies the interface language, so their status line and notices came
out in English in every language. open_paths now applies it first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 01:30:13 +01:00
David MannandClaude Opus 5.5 573bbbf157 i18n(ar): Hue is درجة اللون
The second questionnaire answer (Algeria). The earlier تدرج اللون read
as "colour gradient" beside Gradient تدرج. Hue, Hue/Saturation, Hue
Jitter and Hue Cube follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 01:30:13 +01:00
David MannandClaude Opus 5.5 8f80fb9790 Tests: Arabic preset-import results are translated
The plural pair is picked at run time, so the literal-key coverage
check can't see these rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 01:07:46 +01:00
David MannandClaude Opus 5.5 3fa06e0ac0 i18n(ar): brush, pattern and gradient preset-import results
The preset file import status (`preset_files_ui::open`) asks for
"Imported {n} brush/pattern/gradient from {file}" plurals; the Arabic
catalog only had the style one, so these results showed in English.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 00:21:19 +01:00
David MannandClaude Opus 5.5 fab71caf80 Web build: the interface language's served face goes first in the UI stack
Served script fallbacks were appended to every UI font family in the
order they arrived. A Japanese and a Simplified Chinese face both cover
Han, and egui draws a character with the first face in the stack that has
it, so a Chinese interface drew Han with the Japanese face when that one
had arrived first (fetched for a Japanese text layer, say). ui_faces now
puts the interface language's own served face first, so the stack a
language change rebuilds follows the language; and when that face arrives
after another served face, add_ui_face rebuilds the stack the same way
instead of appending. served::fallback_for_language gives the face.

This orders the served faces only; with an interface language that has
no served face (English), they stay in arrival order.

Review finding on #10006.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 23:45:35 +01:00
David MannandClaude Opus 5.5 97ed3d1d39 Web build: an unreadable served font stays out of the interface
A served script fallback joins every egui font family, and egui panics on
a configured font it cannot parse: a host answering a font's path with an
error page, or serving a truncated file, stopped the web UI on its next
layout or font rebuild. add_ui_face now checks the face with
cjk::font_face_is_readable first, as the system-font fallbacks are
checked, and leaves an unreadable one out with a warning. The regression
test panicked in epaint's family.rs before the check.

Review finding on #10006.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 23:43:08 +01:00
David MannandClaude Opus 5.5 250940a4f5 Arabic: terms chosen by a native speaker
The first questionnaire answers (Iraqi Arabic): Filter فلتر, Feather تلاشي
الحواف, Blur ضبابية, Liquify تمويع, Unsharp Mask قناع الحدة, Stroke حدود,
Guides خطوط التوجيه, Canvas مساحة الرسم, Lasso الحبل, Clone Stamp ختم
النسخ, Healing Brush فرشاة التصحيح, Color/Linear Burn تغميق, Content-Aware
مراعٍ للمحتوى, Rasterize تنقيط, Bevel & Emboss شطب ونقش, Pattern نقشة,
Posterize تقليل درجات اللون, Halftone أنصاف الألوان, Lens Flare وميض
العدسة, Texture الملمس, Glyphs الرموز, Gamut النطاق اللوني; every row
using them follows, with adjectives agreeing. Select › Modify › Border
becomes حدود التحديد so it no longer reads like Stroke.

Opacity (الشفافية, "transparency", would read 100% as fully transparent)
and Crop (قص is Edit › Cut) keep العتامة and اقتصاص for now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 22:33:37 +01:00
David MannandClaude Opus 5.5 f66f749f96 Merge main
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 22:18:30 +01:00
David MannandClaude Opus 5.5 15dc4092f8 Web build: served script fonts draw the interface too
The web build has no system fonts and embeds no craft fonts, so an Arabic
(or Japanese, Chinese, Korean, Hindi) interface had no font for its labels:
served fonts were registered only in the document text engine. A served
script fallback now also joins the end of every egui font family, and the
font stack theme::install_fonts rebuilds on a language change includes it
again. The web shell asks for the interface language's script font, not
only the browser languages'.

Review finding on #10006.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 22:18:28 +01:00
aiongg e2f9ae6bfb Merge main into perf/9328-slow-frames
Conflicts in perf/budgets.toml and docs/scorecard.md: both sides added perf rows (P80 here, P81 and P82 from #9942). Kept all three; scorecard regenerated with cargo xtask scorecard.
2026-10-28 20:30:50 +00:00
David MannandClaude Opus 5.5 73ac7d9a25 Arabic layer names and title read right to left again on egui 0.37
egui 0.37 lays text out with the Unicode Bidirectional Algorithm, so the
display-order rewrite #5385 added for egui 0.36 now reverses Arabic and
Hebrew layer names and the in-app title a second time. Names go to egui
as typed; the title line asks for a left-to-right paragraph so
"— PhotoCraft" stays at the right; bidi_text::elide cuts a right-to-left
name at its logical end and egui puts the "…" at the left.

Tests lay the text out with egui and compare glyph positions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 21:22:26 +01:00
bd9590d060 Arabic interface language, combined from the community catalogs
Adds Arabic (ar, العربية) as an interface language. The catalog combines
the open Arabic catalogs of #2505, #4520, #4569, #5593, #5915, #6092 and
#6287: each row takes the best of their translations, with one Arabic
term per concept across the UI, and the strings added since are filled
in. Modern Standard Arabic, Western digits, the six CLDR plural forms
(zero|one|two|few|many|other).

The two tests that used ar-SA as an unsupported locale now use sw-KE, and
the direction test expects Arabic to be the one right-to-left catalog.

Co-authored-by: azizr12 <[email protected]>
Co-authored-by: hicbest <[email protected]>
Co-authored-by: hasan-sdaif <[email protected]>
Co-authored-by: NibrasAz7 <[email protected]>
Co-authored-by: vfggf95565 <[email protected]>
Co-authored-by: syrrevshin4202-prog <[email protected]>
Co-authored-by: test-bit-sys <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-28 21:22:26 +01:00
Brennan StehlingandClaude Opus 5.5 e2855fddd7 test: P81/P82 count only timed refreshes; mask undo must upload a partial rect (#9329)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-28 02:04:54 -07:00
Ikki Nishihara ca17e9b627 Merge current main and preserve brush mode picker behavior
Signed-off-by: Ikki Nishihara <[email protected]>
2026-10-28 15:55:25 +09:00
Brennan StehlingandClaude Opus 5.5 c855685c7f test: cover group and clip-base effect damage, and mask undo coverage (#9329)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 23:09:58 -07:00
Brennan StehlingandClaude Opus 5.5 2119158a5e perf: a pixel change damages only the tiles that changed; command rects become checked hints (#9329)
step_damage narrows a layer whose only change is in its surfaces (pixels, mask, type,
smart-object and fill caches) to the bounding box of the tiles that differ: a merge walk of
the two tile maps, pointer compares only. A mask's tiles grow by its feather, all of them by
the layer's effects and the effects of the groups around it, never past the layer's whole
extents. A frame-spanning effect whose frame moved keeps the whole extents (#4053). Undo,
redo and History jumps get it for free: undoing a 60 px dab on a full-canvas layer redraws
its tiles, not the canvas, and so does a fill or filter on a small selection.

The painting commands' own damage rects go through one door, Session::hint_damage, which
intersects them with the edit's damage. Debug and test builds count a hint that misses a
changed tile in Session::damage_misses and log it; nothing panics. refresh_type_layers reports
step_damage instead of None.

Deleted: note_damage and layers_damage (identical to step_damage after layer.setProps and
layer.translate), note_inert_insert (step_damage already steps over inert layers, #1771),
and the engine's siblings_of they used.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 23:09:58 -07:00
Brennan StehlingandClaude Opus 5.5 a9c26551f1 perf: add P81/P82 redraw-area rows on full-canvas layers (#9329)
Track-only rows that check they hit the whole-document-redraw path and
print the refreshed pixel count: undo of a brush dab on a 16-bit
15000x10000 full-canvas layer (reps capped at 5) and a fill of a 2 %
selection on a 24 MP full-canvas layer.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 23:08:30 -07:00
Brennan StehlingandClaude Opus 5.5 fc6d8b0ec2 Perf: a frame counts each command once, and every frame closes its stage record (#9328)
Only the outermost run_command writes the frame's command stage, so a nested
run (file.save -> layer.smartObjects.saveContents, actions.play -> its view
steps) isn't counted twice. ui_frame's UI moves into ui_body and finish_frame
runs after it on every path, including the screen picker's wait modal; the
pass before fonts are ready closes it too.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 23:08:27 -07:00
Brennan StehlingandClaude Opus 5.5 b1ffb9a423 Control: perf lists the last slow frames and their stages as slowFrames (#9328)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 23:07:54 -07:00
Brennan StehlingandClaude Opus 5.5 5c94fb2074 Perf: every frame records its stages, slow ones are kept and logged; the stroke trace reads the same record (#9328)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-27 23:07:39 -07:00
Brennan Stehling 00522c852e Perf: P80, app frame time for a full CPU refresh of a 24 MP document (#9328)
Track-only row, the slow-frame recorder's worst case. A 24 MP photo plus
three full-canvas blended copies (Multiply, Screen, Overlay); each sample
toggles the top copy and times one harness.step(), so every frame
recomposites all 24 MP on the CPU (the photo's tiles are never uniform,
which keeps the reduced render's one-colour shortcut out of the way).
The row errors unless each frame recorded a CPU refresh covering at least
95 % of the canvas, so it can't silently take a fast path. 10 samples.
2026-10-27 23:06:56 -07:00
aiongg 2b1c6b93c3 Merge main into split-filter-adjust-crop-fx-builders
crop_ui.rs moved to tools/; the PR's builders replace main's Clippy extractions of the same code; #6723's Color Lookup save carried into the moved encoder.
2026-10-28 04:22:40 +00:00
aiongg b4e69af424 Merge main into perf/9328-fallback-reason 2026-10-28 03:00:01 +00:00
Dylan M. Taylor d5be9b8aef Merge pull request #9770 from dylanmtaylor/sonar/enforce-clippy-standards
Enforce Rust coding standards via Clippy
2026-10-27 22:55:30 -04:00
aiongg 594a28b335 Render path: a raised GPU Memory ends GPU Memory Full; a flipped view keeps its own slot (#9328)
A measured fit that fits ends the document's over-budget reason, so the status bar clears as
soon as GPU Memory is raised. A flipped or pixel-aspect-corrected view records its reason in
its own slot: unflipped, the document's own reason (Advanced Blending...) is back rather than
a false "back on the GPU".
2026-10-28 02:19:44 +00:00
Dylan M. Taylor ab9b27b80d Restore rationale comments dropped by the Clippy refactors 2026-10-28 02:13:42 +00:00
Dylan M. Taylor 163caeb86b Make the PSD size-limit test fail when a size-based PSB promotion happens 2026-10-28 02:13:42 +00:00
Dylan M. Taylor 63eb3eabe4 Drop the unused band_rows export and its dead_code allow from io 2026-10-28 02:13:42 +00:00
Dylan M. Taylor c726a14f0f Restore the Animated Zoom hold gating in canvas navigation 2026-10-28 01:49:51 +00:00
Dylan M. Taylor 1a3415608b Restore the PSD frame stroke import after the io refactor 2026-10-28 01:49:51 +00:00
Dylan M. Taylor 5ad52e6b85 Remove duplicated view-command and type-target code in ui-egui 2026-10-28 01:06:43 +00:00
Dylan M. Taylor f2ac9d28b7 Refactor ui-egui layer and channel panels for strict Clippy checks 2026-10-28 01:06:43 +00:00
Dylan M. Taylor 267fb55e0f Refactor ui-egui canvas and options bar for strict Clippy checks 2026-10-28 01:06:42 +00:00
Dylan M. Taylor de9636f56e Refactor ui-egui dialogs for strict Clippy checks 2026-10-28 01:06:42 +00:00
Dylan M. Taylor 1a6d8ec9e3 Refactor ui-egui control dispatch for strict Clippy checks 2026-10-28 01:06:42 +00:00
Dylan M. Taylor a703ea2781 Restore wasm builds of ui-egui after the Clippy refactor 2026-10-28 01:06:42 +00:00
Dylan M. Taylor 9800f56dfb Refactor text for strict Clippy checks 2026-10-27 23:47:07 +00:00
Dylan M. Taylor 6b397ff7c0 Refactor tablet for strict Clippy checks 2026-10-27 23:47:06 +00:00
Dylan M. Taylor 52800a7b3d Refactor raw for strict Clippy checks 2026-10-27 23:47:06 +00:00
Dylan M. Taylor ba25f585bd Refactor psd for strict Clippy checks 2026-10-27 23:47:06 +00:00
Dylan M. Taylor 2b0b11848c Refactor paint for strict Clippy checks 2026-10-27 23:47:06 +00:00
Dylan M. Taylor 2a3135d796 Refactor io for strict Clippy checks 2026-10-27 23:47:06 +00:00
Dylan M. Taylor 6ebc0180da Refactor gpu for strict Clippy checks 2026-10-27 23:47:06 +00:00