Commit Graph
11425 Commits
Author SHA1 Message Date
abc2cbandClaude Opus 5.5 aac778ebf7 Merge upstream/main (fd28da56) into PSD distort/Invert smart filters
server.rs takes main's ui_set layerFilter description (#5776), which
replaces the earlier stopgap here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 06:34:34 +03:00
abc2cbandClaude Opus 5.5 b90ddb338a Merge upstream/main (fd28da56) into Smart Filters editors
server.rs takes main's ui_set layerFilter description (#5776), which
replaces the earlier stopgap here. adjust_dialog.rs: a Smart Filter's
Curves/Levels editor reads its smart object's histogram, alongside main's
isolated mask or channel curve target (#5335).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 06:34:33 +03:00
abc2cbandClaude Opus 5.5 99cfcf40a7 Merge upstream/main (fd28da56) into Layers Panel options
server.rs takes main's ui_set layerFilter description (#5776), which
replaces the earlier stopgap here. es.tsv: main's Spanish catalog (#4306)
now has New Layer…, Panel Options… and Lock Layers, so this PR's copies
of those rows are dropped (bundled_catalogs_are_consistent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 06:34:33 +03:00
Higgs32584 cae5a506c0 Merge main into fix/5727-move-tool-offset-readout 2026-10-14 23:31:29 -04:00
Gustavo Ziger b54675d8a1 Merge main into feat/zoom-animation-566 2026-10-15 00:30:40 -03:00
Higgs32584 48e12118d1 Merge main into fix/5806-displace-asks-for-map 2026-10-14 23:30:00 -04:00
Higgs32584 c394560d6a Merge main into fix/5863-cjk-menu-mnemonics 2026-10-14 23:29:25 -04:00
dotCooCoo f8cc7fca50 Brushes: importing an .abr file numbers repeated brush names in linear time
brush.presets.importAbr named each imported preset with unique, which
compared a candidate name with the names of the presets one by one and
tried "Name", "Name 2", "Name 3" and so on until one was free. A
version 1 or 2 brush with a computed tip and no name is named after
its tip ("9 px Round"), so a file of n such brushes of one diameter
cost about n^3/6 string comparisons. In a test build, importing 10,000
of them took 25 minutes (22 minutes of CPU time).

The import now builds the set of preset names once and keeps the next
number to try for each repeated name, as swatches.import does for
swatch and group names. Names still compare case-insensitively, and
every preset gets the same name as before. brush.presets.importImage
names its one preset with the same code.

repeated_brush_names_are_numbered_in_linear_time imports 10,000 such
brushes on a thread of its own and fails when the import takes more
than 20 seconds. repeated_brush_names_take_the_first_free_number
checks the names when the file repeats a name in other letter cases,
when a preset already holds one of the numbers, when the file has a
name that the import already gave to an earlier brush, and when a
name clashes with a built-in preset.
2026-10-14 20:25:51 -07:00
Khawar Zamman WaniandClaude Opus 5.5 8df66a71ca Layers filter tests: expand the fixture's group (#5571)
The fixture builds "Sheets" with layer.groupLayers, which now creates the
group collapsed. The unfiltered baseline lists only expanded groups'
contents (Photoshop), so open the group as the other group tests do. The
filtered checks already look inside collapsed groups (display_rows gets
show_all while a filter is active).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 08:50:32 +05:30
FazminandClaude a4b1e2a607 Type: Create warped text button in the options bar, as in Photoshop (#5911)
The Type tool's options bar now has Photoshop's Create warped text button
after the text colour swatch. It opens the same Warp Text dialog as
Type > Warp Text... for the selected type layers (or the layer being
edited), and is greyed when there is no type layer to warp.

- assets/icons/text-warp.svg: original glyph (a T above a bowed arc) on
  Lucide's 24 px grid and stroke; listed in ATTRIBUTION.md.
- The tooltip is translated in all 20 catalogs, reusing each language's
  existing "Create Warped Text" wording (new for Russian).

Test: options_bar_warp_button_warps_the_selected_type_layers.

Co-Authored-By: Claude
2026-10-14 23:09:05 -04:00
Khawar Zamman Wani e8f6b89c9c Merge remote-tracking branch 'origin/main' into fix/5571-group-layers-collapsed 2026-10-15 08:36:06 +05:30
fd28da56da Type: keep text selection highlight visible while Command/Ctrl is held (#5542)
* Type: keep text selection highlight visible while Command/Ctrl is held

* Type: match Photoshop 1px dark frame and handle styling for type transform

* Merge main; keep the transform box and underline colours from the theme tokens

The selection-highlight fix stands on its own; the hard-coded box and
underline colours and the removed reference point were unrelated to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: safvanedge <241307593+safvanedge@users.noreply.github.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:46:46 -04:00
7efebfa050 fix(path): Shift locks a Direct Selection anchor drag to 45° (#5475) (#5498)
Dragging selected anchors with the Direct Selection tool ignored Shift,
so lengthening a slanted bar also nudged it vertically. As in Photoshop,
Shift now locks the anchor move to multiples of 45° from the press, in
the live preview and in the committed path.moveAnchors. It works whether
Shift is held from the press or added during the drag; Shift at the
press still toggles the anchor's selection as before.

Reuses stroke_constraint::snap45 (the Gradient tool's Shift lock).

Fixes #5475

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-14 22:46:41 -04:00
Michael HigginsandClaude Opus 5.5 3887d8f738 Title bar: dialogs no longer stop the window dragging on macOS (#5826) (#5860)
The overlay that keeps the title strip's free gap draggable under a dialog's
modal layer (#4913) only ran with the custom title bar. macOS keeps the OS
traffic lights over the app's own title strip (custom_titlebar is false), so
with the Embedded Profile Mismatch prompt or any dialog open the window could
not be moved. The overlay now runs whenever the strip is drawn.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:46:36 -04:00
Michael HigginsandClaude Opus 5.5 8e2c5ddb40 macOS: a bundled app keeps its own Dock icon (#5849) (#5879)
The main window set a runtime PNG icon everywhere. On macOS that replaces the
app bundle's PhotoCraft.icns in the Dock, so the system couldn't render it
in its own style (Liquid Glass and its tinted and dark variants). The runtime
icon is now skipped when running from an .app bundle; unbundled runs and the
Windows and Linux builds still set it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:46:30 -04:00
nrq6993-a11yandCursor b6cdb16caf UI: unsaved-changes buttons show every key in one style (storytold/photocraft#5564) (#5603)
German showed "Ja (Y)" next to "(N)ein". Keys now go inside the words only when
every translated label starts with its key; otherwise all labels append it
("Ja (Y)", "Nein (N)", "Abbrechen (C)").

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-14 22:46:25 -04:00
Michael HigginsandClaude Opus 5.5 3aaffdde68 Adjustment layers: a live preview is never coarser than the screen (#5764) (#5778)
Dragging a Curves point (or any control) in the Properties panel of an
adjustment layer previews through `canvas::ensure_proxy_preview`, which
picked its downscale factor from the document size alone
(`proxy::preview_factor`): any document over 5 MP was drawn from a 2-5x
reduced copy at every zoom, so at 100 % the canvas turned blocky until
the mouse was released.

Cap the factor by the view's zoom with the rule the Image > Adjustments
dialogs already use (`adjust_preview::proxy_factor`: the proxy stays at
least at screen resolution) when the wgpu compositor can draw the
full-size document. At 50 % and closer the drag now shows the full-size
composite; zoomed out, the proxy still saves the work. Documents the GPU
compositor doesn't cover keep the old proxy (the full size would be a
CPU composite per change).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:46:20 -04:00
Michael HigginsandClaude Opus 5.5 be4cadd83d Rulers: Alt-drag makes a guide of the other orientation (#5698) (#5885)
As in Photoshop, dragging a guide out of the top ruler with Alt/Option held
makes a vertical guide, and out of the left ruler a horizontal one; without
Alt each ruler makes its own kind, as before.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:46:15 -04:00
FredApps 37f57f2e9c Preserve Layers scroll per document (#5522) (#5540)
* chore: reserve draft implementation for #5522

* fix(ui): retain each document's Layers scroll position (#5522)
2026-10-14 22:46:09 -04:00
Valentin KleinandClaude Opus 5.5 2fbd171427 Options bar: Show Transform Controls in every theme (#5740) (#5802)
The Studio, Adwaita and Breeze themes' Move tool options bar had only Auto-Select and a hint, so Show Transform Controls could not be turned on there and a click on a layer never showed its box and handles. The toggle is now in every theme, as Auto-Select is (#1275).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:46:04 -04:00
Michael HigginsandClaude Opus 5.5 f4351cb37c Drag and drop: PhotoCraft comes to the front after a drop (#5687) (#5894)
Files dropped from another app's window (a file manager) were imported, but
the source window stayed in front of PhotoCraft. The frame that takes a drop
now asks for focus, so PhotoCraft comes forward as Photoshop does.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:45:59 -04:00
Nigel Ihza Firdausy 9b59a8ca6e fix(pen): keep unfinished paths in their original document (#5460)
* fix(pen): finish draft before creating a document

* test(pen): keep open work path in its source document
2026-10-14 22:45:45 -04:00
midasmatterhorn 88c7286d99 fix(ui): the Move tool keeps Photoshop's arrow pointer (#5814)
The canvas cursor match mapped Tool::Move to CursorIcon::Move, the 4-way
move cursor, while Photoshop shows its standard arrow pointer and marks the
movable layer with the hover outline. Use CursorIcon::Default for the tool
(#5646).
2026-10-14 22:45:39 -04:00
Stevan MarjanovićandStevan Marjanović 2b934aa53a UI: centre text vertically in shared text fields (#5550)
* UI: centre text vertically in shared text fields

TextEdit draws its line at the top of its rect, and the theme's 24 pt
interact height made the edit taller than the field's inside, so text in
widgets::text_field sat a few pixels high (Preferences search, hex fields,
name fields) while dropdowns and value fields were centred. Fill the box
and centre the line in it.

* Fixed failing test

---------

Co-authored-by: Stevan Marjanović <24486184+stevanmarjanovic@users.noreply.github.com>
2026-10-14 22:45:34 -04:00
Bihacsy László 414ae0b2c2 i18n(hu): align six rows with the catalog conventions (#5434)
Three prompts used the formal verb form ("Adjon", "Válasszon",
"kattintson"); the catalog addresses the user informally throughout.

Two colour profile messages put an article before a placeholder
("A(z) „{name}”") and glued a suffix to one ("{mode}-profilja"). The
correct form depends on the inserted value, so the placeholders now
stand after a colon or in brackets.

The Ask On Mismatch hint kept the English option name; it now names
the Hungarian label of that option in Color Settings.
2026-10-14 22:45:29 -04:00
skylartaylor b2fafcf68c ci: add comfortable runtime limits to unbounded jobs 2026-10-15 04:27:54 +02:00
hasan-sdaif 9c5d10100b Merge main into feat/arabic-i18n
The license note now names both new catalogs: Spanish from main and
Arabic from this branch.
2026-10-15 02:27:44 +00:00
Gustavo Ziger ad72d1d1fd fix(ci): repair preview tests and reduce WebAssembly size 2026-10-14 23:21:27 -03:00
Sir Starch 6dffa480ac BMP export: Indexed Color documents save as palette BMPs
Saving an Indexed Color document as BMP went through the ordinary RGB
path and wrote a 24-bit file, so the colour table was lost on reopen
(the PNG exporter already had a palette branch).

export_mode_specific now sends Indexed Color to BMP as well as PNG,
through a new encode_bmp_indexed that writes an 8-bit palette BMP with
the document's table. BMP has no transparency, so a transparent index
is written as its palette colour and the export says so.

bmp_palette returned the decoder's 256-entry padding, so a 3-colour BMP
reopened with 253 extra black entries. It now trims the table to the
colours the header declares.
2026-10-15 04:08:28 +02:00
jonathanwxh-cell cc5971ff5b ci: run clipboard regressions independently 2026-10-15 10:07:54 +08:00
Gustavo Ziger 1c926a558c Merge main into feat/zoom-animation-566 2026-10-14 23:06:43 -03:00
FredAppsandFredApps cb319fd742 Document layerFilter in the ui_set MCP schema (#5776)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-10-14 21:54:48 -04:00
David MannandClaude Opus 5.5 6bb45c8d5b Shapes: Density and Feather on shape layers (#5846)
A shape layer's path is its vector mask in Photoshop (Properties > Masks),
with its own vector-mask density and feather. PhotoCraft's ShapeLayer had
neither, so soft shapes could not be made, and stroked soft shapes from PSDs
lost both on import.

- doc: ShapeLayer gains `density` (0..1, default 1) and `feather` (px,
  default 0).
- vector: the shape renderer applies them to the fill as a soft vector mask
  (fill shows beyond the path at 1 - density; the feather is the vector
  mask's Gaussian), so the shape's own pixels, the GPU (which samples them)
  and the stroke/fill split all follow. The stroke stays crisp. The feather
  blur moves from compose::masks to vector::feather and both share it and the
  feathered area, so a shape and an equal vector mask render the same pixels.
- compose: soft shapes' bounds reach their fill, their layer effects follow
  the soft alpha, and the split cache key includes density and feather.
- engine: `layer.vectorMask.edit` on a shape layer sets density/feather in one
  history step (path/enabled/linked/invert are refused there); density is now
  validated (finite 0..100) instead of clamped. `layer.vectorMask.info`
  reports a shape's values.
- ui: Properties shows the Vector Mask Density and Feather sliders for a
  selected shape layer in both themes (live drag, one undo per gesture).
- .pcraft: manifest and convert carry both with serde defaults (older files
  load at 100 % and 0 px).
- PSD: export writes them as the vector density/feather mask parameters;
  import reads them into the shape (re-rendered, as the stored pixels lack the
  fill beyond the path). Soft unstroked solid/gradient shapes now import as
  shapes instead of fill layers with a vector mask; pattern-filled ones stay
  fill layers.

Photoshop's 10 px feather on a 100 px black square, row 100, x = 30..72:
ours is within 1 level of every measured value (8, 16 and 32 bits);
density 50 % shows 127/128 beyond the path and 0 inside.

Scorecard: TOOL-214-12 done.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 03:07:46 +02:00
David MannandClaude Opus 5.5 1fa18cb447 Compose: Transparency Shapes Layer off blends a layer's alpha as Fill in the special eight (#5692)
With Transparency Shapes Layer off, Photoshop composites a pixel of alpha a at Fill f in Color
Burn/Dodge, Linear Burn/Dodge, Vivid/Linear Light, Hard Mix and Difference as an opaque pixel at
Fill a x f: the alpha pulls the source toward the mode's neutral colour inside the blend, and
only Opacity x masks cover the backdrop. Masks keep acting as coverage, and the other modes look
the same either way. Measured in Photoshop on generated documents (12 modes, Opacity 100/53,
Fill 100/50, alpha 10-100 %, a 10-100 % mask, a half-transparent backdrop and an isolated group):
the model is within 2 levels everywhere (Hard Mix near full alpha within 4, from 8-bit rounding).

The CPU compositor folds the content alpha (masks divided out) into Fill for such layers; the
GPU compositor has no pass for it, so advanced_active sends those documents to the CPU.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 03:04:25 +02:00
ZhuanTou33212 96e11ebd63 Translate release checks for the new Serbian catalog 2026-10-15 09:03:32 +08:00
Abdelrahman e52ef8213d Add Arabic (ar) interface translation catalog 2026-10-15 04:02:07 +03:00
David MannandClaude Opus 5.5 732b977dc4 Merge main into fix/history-panel-menu
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 02:41:07 +02:00
David MannandClaude Opus 5.5 599a2304ed History panel menu: Delete removes the selected snapshot, as the trash does
Main's History panel can select a snapshot, and its trash then deletes that
snapshot (#5324). The panel menu's Delete still deleted the current state.
It now follows the same selection.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 02:41:06 +02:00
ZhuanTou33212 da0823d026 Merge latest upstream into release-check PR and resolve integration conflicts 2026-10-15 08:40:13 +08:00
David MannandClaude Opus 5.5 a0c2c1992f docs: ui-parity marks the modifiers-at-press row done, as BUG-208-4 is
Main has the marquee Shift+Alt intersect test (#3624), so the row no longer
says it is missing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 02:36:30 +02:00
David MannandClaude Opus 5.5 00959b3549 Merge main into docs/scorecard-stale-rows-2
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 02:35:04 +02:00
bazmarthandClaude Opus 5.5 62ab7f3868 Color: the Move tool recolours the selected type and shapes too
Layers picked with the Move tool (a click, Shift-click or its marquee) now
take a colour picked in the Color or Swatches panel or the Color Picker:
every selected type layer's colour and every selected shape's fill, in one
history step. The brushes, the pixel selection tools and the other tools
still change only the foreground.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 00:26:11 +00:00
David MannandClaude Opus 5.5 1ce9a87b6b Effects: Gradient Overlay transparency follows Smoothness, midpoints and method (#1954)
Gradient layer effects baked only their colour stops; the opacity stops came
through raw, so Smoothness, opacity midpoints and the interpolation method
never reached the transparency ramp. Gradient fill layers applied Smoothness
and midpoints but always with Classic.

Both now share one bake (gradient_bake::bake_opacity). Measured on scripted
Photoshop 25.1 (overlays and fill layers render identical pixels): Linear and
Perceptual also bend the opacity curve (stops enter the method's space as
sRGB grey levels, the result leaves as y^0.65), fitted within 0.015 of every
8-bit sample. Smooth keeps Classic's opacity curve (not measurable on 25.1).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 02:18:12 +02:00
jonathanwxh-cell 3de03f48bf Keep unexported clipboard copies usable when native reads fail 2026-10-15 08:16:22 +08:00
Michael Higgins 5b026c1979 Merge branch 'storytold:main' into fix/5806-displace-asks-for-map 2026-10-14 20:16:07 -04:00
Michael Higgins 17d0a55baf Merge branch 'storytold:main' into fix/5727-move-tool-offset-readout 2026-10-14 20:07:58 -04:00
David MannandClaude Opus 5.5 8601a7b170 docs: resolve the conflict markers left in the main merge
The merge of main (5a4df1a3) committed unresolved conflict markers in the
status lines of gaps.md, target-app-parity.md and ui-parity.md and in the
Type/Vector rows of target-app-parity.md. Keep main's text and add this
PR's own items back: G8 Warp Text preview done (TYPE-218-7), the Type
row's evidence, and the selection-modifier and Alt-wheel rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 02:05:26 +02:00
Michael Higgins 16a7ad1a02 Merge branch 'storytold:main' into fix/5713-smoothing-pressure-follows-brush 2026-10-14 20:04:26 -04:00
Michael Higgins 6ee457cc7a Merge branch 'storytold:main' into fix/5745-auto-blend 2026-10-14 20:02:14 -04:00
David MannandClaude Opus 5.5 40f1b573df Merge fix/5495-dropdown-height (with main) into fix/5532-blend-separators
dropdown_with keeps all three: combo_list (#5495), main's translate flag for
dropdown_literal (#5335) and the starts_group separators (#5532).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 02:01:42 +02:00