Commit Graph
560 Commits
Author SHA1 Message Date
Claude 5d921c7859 Merge branch 'community/1240-psd-text-fill' into claude/integ-batch-1 2026-10-08 18:12:39 +00:00
Claude 3d955b6dc7 Merge branch 'pr-1261' into claude/integ-batch-1 2026-10-08 18:12:39 +00:00
Claude 7de0dae648 Merge branch 'pr-1279' into claude/integ-batch-1 2026-10-08 18:12:39 +00:00
Claude 5ea62e5c7a Merge branch 'pr-1269' into claude/integ-batch-1 2026-10-08 18:12:39 +00:00
Claude 0273f92abe Merge branch 'pr-1268' into claude/integ-batch-1 2026-10-08 18:12:39 +00:00
Claude 6420a4d5f9 Merge branch 'pr-1306' into claude/integ-batch-1 2026-10-08 18:12:39 +00:00
Claude 103783a2ab Merge branch 'pr-1307' into claude/integ-batch-1 2026-10-08 18:12:38 +00:00
Claude 9c4f810d14 Merge branch 'pr-1237' into claude/integ-batch-1 2026-10-08 18:12:38 +00:00
Claude a3c34e8221 Merge branch 'pr-1228' into claude/integ-batch-1 2026-10-08 18:12:38 +00:00
Claude 0475d60258 Merge branch 'pr-1155' into claude/integ-batch-1 2026-10-08 18:12:38 +00:00
Claude e6795f9d70 Merge branch 'pr-1178' into claude/integ-batch-1 2026-10-08 18:12:38 +00:00
Claude f8fb5d4595 Merge branch 'pr-1290' into claude/integ-batch-1 2026-10-08 18:12:38 +00:00
Claude 4560d12ac2 PSD text fill: keep the fix and its tests, drop the proof-only screenshots and example
The Photopea screenshots, their ATTRIBUTION row and the example that made
them documented the bug for review; the unit tests in crates/text cover
the behaviour, so they are not needed in the tree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA
2026-10-08 18:12:33 +00:00
Marcelo Cárdenas 48adaa7edf Gradient tool: a handle dragged past the 10% scale floor stops; the other handle stays put (#1243)
Dragging one live-gradient handle towards the other clamps the fill's scale at 10%. For Linear the
centre was still taken from the midpoint of the requested points, so the
clamped gradient was re-centred and the handle that wasn't being dragged slid along the line.
gradient.fill.set now shifts the clamped layout so the handle not given keeps its place. The same
apply_set drives the drag preview, so the canvas matches.
2026-10-08 14:02:18 -03:00
Marcelo Cárdenas 51a5da427e Filter › Last Filter applies to the active layer, not the layer the filter first ran on (#1270)
The Filter Gallery, Camera Raw and Adaptive Wide Angle dialogs record the layer they ran on in
the command's params. Last Filter replayed the journal entry verbatim, so it filtered that layer
again (possibly hidden, or deleted) and appeared to do nothing on the layer you were looking at.
It now drops the recorded `layer`, so it applies to the current layer as in Photoshop.
2026-10-08 14:01:50 -03:00
DWAA1660 7eb04a1f64 PSD export: write empty layer and mask channels as raw 2026-10-08 10:32:21 -06:00
Nigel Ihza Firdausy e4bf997806 docs(scorecard): account for two WebP export preference fields (#1260) 2026-10-08 23:16:24 +07:00
Nigel Ihza Firdausy 067cdd1f68 style: apply rustfmt layout to conditional WebP preference labels 2026-10-08 22:52:58 +07:00
Nigel Ihza Firdausy 72468368e3 style: format WebP export regression test as rustfmt expects 2026-10-08 22:52:53 +07:00
Nigel Ihza Firdausy 8e6f7fffe4 test(export): verify WebP quick export mode, quality, validation, and legacy prefs 2026-10-08 22:50:54 +07:00
Nigel Ihza Firdausy caea32cc51 fix(ui): use WebP quality and lossless preferences in Export As dialog 2026-10-08 22:50:18 +07:00
Nigel Ihza Firdausy cee1d4ee49 fix(ui): show format-specific JPEG and WebP export preference controls 2026-10-08 22:49:49 +07:00
Nigel Ihza Firdausy a7da0ad8f0 fix(export): apply configured WebP quality to Quick Export output 2026-10-08 22:49:06 +07:00
Nigel Ihza Firdausy cd9127b3b5 feat(export): persist WebP lossless mode and quality in export preferences (#1260) 2026-10-08 22:48:47 +07:00
Nigel Ihza Firdausy 6fe7b0e3ba fix(ui): preserve localized quick export labels for selected format 2026-10-08 22:40:22 +07:00
Nigel Ihza Firdausy 5b2f34c6b8 fix(ui): show configured quick export format in File menu (#1259) 2026-10-08 22:37:28 +07:00
Nigel Ihza Firdausy 7cdb227a9f fix(ui): ignore hidden canvas guides during Move tool hit testing (#1258) 2026-10-08 22:36:59 +07:00
Nigel Ihza Firdausy e9cc4826c4 Avoid overlapping borrows when reopening guide layout dialog 2026-10-08 22:10:17 +07:00
Nigel Ihza Firdausy 62172a0cd9 Cover successful, cancelled and failed guide layout dialog state 2026-10-08 22:03:39 +07:00
Nigel Ihza Firdausy 89aab1d218 Save guide layout preferences only after successful application 2026-10-08 22:03:04 +07:00
Nigel Ihza Firdausy a614222b63 Remember last applied New Guide Layout parameters in UI state 2026-10-08 22:02:53 +07:00
Rage 6512c938ad Fix PSD text fill after edits in Photopea 2026-10-08 09:51:55 -05:00
DWAA1660andClaude Opus 5.5 21318c065f UI Scale Auto keeps the system's fractional scale on 4K (#1072)
Auto forced at least 200% on any 4K monitor, overriding a fractional
system scale such as 125% or 150%, so Linux users on 4K got either
100% or 200% and nothing between. Auto now follows whatever scale the
system reports and uses the 200% fallback only when the system reports
no scaling (100%), which is the case #225 was fixing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QcbChgBDVrdhjfsFA5D9nt
2026-10-08 08:37:58 -06:00
liowald 7f0de92453 fix(startup): retain prior crash evidence on windowing errors 2026-10-08 16:21:00 +02:00
liowald e14c0cf9ce fix(startup): preserve GPU backend after non-graphics errors 2026-10-08 16:16:59 +02:00
Brandon ThomasandClaude Opus 5.5 e5e3e39752 Bump version to 0.5.0 (from 0.4.1) for release
Co-Authored-By: Claude Opus 5.5 <[email protected]>
v0.5.0
2026-10-08 10:01:32 -04:00
bce7e54a63 Release workflow: only signing and draft-release jobs use the release environment (#1220)
version, linux and web read no secrets. With environment: release they were refused on a branch,
so a branch dispatch of release.yml built nothing. Now a dry run builds every unsigned platform;
the signed jobs are still refused and the draft-release job needs them, so a branch can't create
a release. Matches craftrules release/playbook.md §2.

Co-authored-by: Brandon Thomas <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 09:52:09 -04:00
35f7e99965 README Downloads: where to get it first, then builds with Windows before macOS (#1219)
Co-authored-by: Brandon Thomas <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 09:50:10 -04:00
d2a9295050 README: Downloads section listing every release build, grouped by OS (#1210)
Co-authored-by: Brandon Thomas <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 09:24:06 -04:00
b10b37c14b macOS: use the native menu bar instead of the in-window menus (#887) (#894)
* macOS: use the native menu bar instead of the in-window menus (#887)

On macOS the menus move from the title bar to the menu bar at the top of the
screen, built with muda from the same rows as the in-window bar (menu_items).
Linux, Windows and the web keep the in-window menus, and so does macOS with
--in-window-menus or PHOTOCRAFT_IN_WINDOW_MENUS=1.

The Mac layout (native_menu.rs, platform-free and tested everywhere):
- a PhotoCraft app menu: About (from Help), Settings (Edit › Preferences),
  Services, Hide, Hide Others, Show All, and Quit, which is still file.exit so
  the unsaved-changes prompt runs;
- a Window menu AppKit knows (Minimize, Zoom, Bring All to Front, the window
  list) and a Help menu with the system search field;
- PhotoCraft keeps Photoshop's ⌘H (Extras), ⌘M (Curves), ⌘W (Close) and
  ⌘, (Hide Layers): Hide and Settings have no shortcut, Minimize is ⌃⌘M.

Key equivalents are handed back to egui as the key presses they were, so
shortcuts run through shortcuts::handle exactly as before: text fields keep
⌘C/⌘V/⌘Z, dialogs and Camera Raw stay modal. A click runs the command like an
in-window click. The menu is updated only when state changes, in place, and
rebuilt only when its structure does.

On every platform:
- menu rows show the shortcut that runs them: 12 live items (Undo, Redo, Cut,
  Copy, Paste, Hide Layers, …) showed none;
- Image › Mode, View › Proof Setup, Proof Colors, Gamut Warning and Isolate
  Layers stay check items with no document open, so opening one doesn't
  change the menu's structure.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* Native menu: test it against AppKit; fix the Window/Help menus and ⌘R routing

tests/mac_menu_appkit.rs (harness = false, main thread, like the tablet
crate's monitor test) installs the real muda menu and reads AppKit's menu
bar back: the PhotoCraft app menu, Quit ⌘Q, no Exit in File, the Window and
Help menus registered with NSApp, and Layer › New › Layer… enabled in place
(same NSMenu) once a document opens. It then sends a real ⌘R key-down
through -[NSMenu performKeyEquivalent:], which must reach egui as ⌘R and run
View › Rulers once, and chooses Rulers by click and by ↩ in the open menu,
which must run as clicks.

It found two bugs, fixed here:
- Window and Help were never registered: muda looks the submenus up in the
  installed main menu, so set_as_*_menu_for_nsapp must come after
  init_for_nsapp. The Window menu didn't list windows.
- AppKit matched ⌘R to Filter › Lens Correction (⇧⌘R), and the menu handed
  egui the matched item's shortcut, so ⌘R ran Lens Correction. Key
  equivalents now go back with the modifiers actually held.

Also a kittest: the title bar draws no menu titles with the Mac menu bar.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* Mac app menu: Language and Appearance, Hide on ⌃⌘H (aligned with VectorCraft)

App settings live in the app menu, as on a Mac and as VectorCraft does:

- Language ▸ after Settings: Auto, then each UI language in its own name,
  the interface.language preference checked; choosing one runs prefs.set
  (unknown codes are refused).
- Appearance ▸: the themes (now check items, in-window too) and Next Theme
  move from Window › Theme to the app menu.
- Hide PhotoCraft takes ⌃⌘H when ⌘H is View › Extras, as Photoshop does
  (Minimize already takes ⌃⌘M).

The other Craft apps use the same app menu, Window menu and
--in-window-menus / <APP>_IN_WINDOW_MENUS opt-out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: bflatastic <[email protected]>
2026-10-08 20:22:28 +07:00
Brandon ThomasandClaude Opus 5.5 c9a7d26f6a Web build: ICU complex-script dictionaries native-only; bump version to 0.4.1
The v0.4.0 release failed its web job: the wasm was 26,365,303 bytes, over the
24 MiB gate in packaging/web/package.sh and Cloudflare's 25 MiB per-file cap.
The largest single item was ICU4X's CJK segmentation dictionary (3.8 MB),
pulled in by parley's complex-scripts feature. Enable that feature on native
targets only; the web build falls back to the generic Unicode rules for
Japanese word boundaries and Thai/Lao/Khmer/Burmese line breaking.

wasm: 26,368,656 -> 22,578,266 bytes (21.5 MiB), measured with trunk build --release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 08:48:03 -04:00
Brandon ThomasandClaude Opus 5.5 173fc90ecb Bump version to 0.4.0 (from 0.3.0) for release
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 08:12:20 -04:00
Cyanoxide 02461a2307 Resolve issue that makes Photocraft save various file formats incorectly as a .psd 2026-10-08 11:58:55 +01:00
Arian Pashae 76c9d65ba8 chore: remove stray fb-clippy.log and fb-test.log and ignore *.log (#1154) 2026-10-08 13:09:31 +03:30
Brandon ThomasandClaude Opus 5.5 5896f0b63e Preferences: colour settings take a typed #rrggbb value (#668 item 2) (#1001)
* Preferences: colour settings take a typed #rrggbb value (#668)

The canvas colour (and every colour preference) showed its hex value as a
label next to the swatch. It's now an editable field: a valid value sets the
colour, a partial one is kept while typing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* rustfmt

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 04:01:43 -04:00
Brandon ThomasandClaude Opus 5.5 4c4c58d6e3 Clone Stamp / Healing Brush: the source crosshair shows only while painting (#668) (#969)
Setting the source with Alt-click left a + on the canvas until the next stroke.
As in Photoshop, the crosshair now shows where the stroke samples only while
the stroke is painted.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 04:01:38 -04:00
Brandon ThomasandClaude Opus 5.5 3d003bd9d0 Windows: selection and other crosshair tools stay visible over grey (#737) (#954)
Windows' crosshair cursor inverts the pixels under it, so it vanishes over
mid-grey (the pasteboard, many photos). On Windows the canvas now draws a
black-and-white crosshair itself and hides the system one.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 04:01:33 -04:00
Brandon ThomasandClaude Opus 5.5 d64f809e4d Layer via Copy, Copy and Cut read only the selected area: 33x faster on 24 MP (#668) (#985)
lift() converted the whole layer to a format with alpha before reading the
selection's rectangle, so on a 24 MP Background every Layer via Copy cost about
a second whatever the selection's size, and it sampled the selection mask one
pixel at a time. It now reads just that rectangle and the mask's rectangle.

6000x4000 Background, 2000x1500 selection, release: Layer via Copy 984 ms ->
30 ms. Select All then Layer via Copy: 212 ms.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 03:17:48 -04:00
Brandon ThomasandClaude Opus 5.5 1ae11a4bb1 Shape tools: Shift and Alt pressed during the drag constrain it, as in Photoshop (#668) (#984)
Shape drags only read the modifiers held at the press, so pressing Shift
mid-drag (the usual way) didn't square a rectangle or keep a polygon's
proportions, and Alt mid-drag didn't draw from the centre. They now follow
the modifiers held at each pointer event, like the marquees.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 03:17:44 -04:00
Brandon ThomasandClaude Opus 5.5 74c7980146 Type: Cmd/Ctrl+T while typing shows or hides the Character panel (#668) (#983)
It passed through to Edit > Free Transform, which started transforming the
layer being typed into. As in Photoshop, it now toggles the Character panel
and editing continues.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 03:17:39 -04:00