Commit Graph
11425 Commits
Author SHA1 Message Date
e3b2854838 Integration: font menu fix-ups after merging main (#6526)
- Character section: a style picked under a family's ">" with type layers
  selected set the layers but not the style for new type (the options bar
  did both). Pick "Inter > Thin" in Properties > Character: new type stayed
  Regular.
- Faux bold: a pointed tip moved r/sin(half its angle) along its bisector,
  uncapped (3.9 r at 30 degrees, an A apex grew a spike), and tips sharper
  than about 20 degrees did not move at all. Every tip now moves at most
  2r, continuously; inner corners (the crotch of a V) keep their exact
  miter.
- Faux bold: each point searched past runs of coincident points for its
  neighbours, O(n^2); a contour of 50 000 copies of one point took ~8 s per
  glyph. Neighbours now come from one O(n) pass over the runs.
- prefs.reset {"path":"type"} and Preferences > Type > Reset Section wiped
  the favourite fonts; they are kept now (type.favoriteFonts by name, or
  Reset All, still clear them).
- An expanded family whose own row scrolled out of view lost its style
  rows, so the list below jumped up.
- Show Similar Fonts re-sorted around each font an arrow step applied, so
  Down went back and forth between two fonts; the list now compares with
  the font current when the filter was turned on (or the menu opened).
- Docs: an uninstalled favourite is kept but not listed; FAUX_BOLD_RADIUS
  and the raster budget describe the thickened outline; the unused
  "Recent font list" rows are gone; docs/scorecard.md regenerated (the
  favourite fonts are one more setting).

Co-authored-by: D-monized <341904702+D-monized@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:52:20 +01:00
9462fa130c Integration: Artboard from Layers dialog opens at the layers' size; refuse -0.4 (#9262)
The dialog remembered the last Width/Height: make a 1080x1350 board from one
layer, then open it for a 20x30 layer and press OK, and that layer got a
1080x1350 board too. It also opened at 0 and an empty Name. It now starts at
the selected layers' size and the next "Artboard N" every time, as in the
reference application. `{"height": -0.4}` rounded to 0 and kept the bounds;
negative sizes are now refused before rounding.

Co-authored-by: DuBearte <130190089+DuBearte@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:49:25 +01:00
Federico Olivares e173a9be17 Merge main into the integration batch
Main reorganised the source tree (command modules under engine/src/cmd, tools and dialogs under ui-egui/src, large files split into modules, inline test modules moved to their own files). This branch's changes to the moved and split files are ported to their new locations.
2026-10-27 10:44:16 -03:00
David Mann e0d06d3fc4 Merge PR #3779: paint.stroke: fill: true fills the enclosed region (#3659) 2026-10-27 14:42:54 +01:00
David Mann c26e31ab52 Merge PR #3609: fix(app): add missing supported file formats to Save As file picker (#3400) 2026-10-27 14:42:51 +01:00
5a6473113e Integration: paint.stroke fill keeps picked CMYK inks and pads to the feather's reach (#3779)
fill_region called fill_cmds::blend_color_mask without the picked-inks
parameter main added, so the PR no longer compiled; it now passes the
brush's picked CMYK inks, as Edit > Fill and Edit > Stroke do, so a
colour picked as CMYK 100/0/0/0 fills a CMYK document with those inks
(where it covers fully; partial coverage blends through RGB, as there).

The soft fill's working bounds were padded by ceil(sigma)+2, but the
feather reaches ceil(3 sigma): a 40 px square filled with size 40,
hardness 0 ended in a hard step from ~0.1 to 0 at 1 sigma + 2 px. The pad
now comes from selection::feather_reach.

Tests through paint.stroke: fill_soft_edge_has_no_step,
fill_paints_a_cmyk_pick_with_the_picked_inks,
fill_works_on_cmyk_and_16_and_32_bit.

Co-authored-by: scott <1591011+dottedt@users.noreply.github.com>
Co-authored-by: echelon <39263+echelon@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:40:45 +01:00
dotCooCoo 7e4aa1f5cf Preserve print settings when the cached printer list is empty 2026-10-27 06:38:33 -07:00
48b42979c8 Integration: Netpbm Save As row leads with .pnm, Open lists .pnm/.dib, save test (#3609)
Picking Netpbm for a bare name (Untitled) took the row's first
extension, .pbm, though the codec writes P6/P7/PF from the image, never
a 1-bit PBM: an RGB document saved as x.pbm holding P6 data. The row now
starts with .pnm. File › Open didn't list .pnm or the new .dib alias, so
a file Save As had just written was hidden in the Open dialog; both are
now in All Formats and their own type. The test checks every new type
and alias is offered, the Netpbm row's first extension, that Open lists
every extension Save As writes, and what Save As writes to .pnm (P6) and
.hdr (#?RADIANCE), as asked in review.

Co-authored-by: buivanvu94 <125793064+buivanvu94@users.noreply.github.com>
Co-authored-by: tanish2k09 <13985398+tanish2k09@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:38:26 +01:00
David Mann f66744c76e Merge origin/main into pr-5405-fixup
Main moved crates/ui-egui/src/transform_tool.rs to tools/transform_tool/ and split it
into submodules; the PR's cursor, overlay and test changes are ported to pointer.rs,
draw.rs and tests.rs unchanged (distort_refused becomes pub(super) for them).
2026-10-27 14:36:00 +01:00
David Mann f3e422f7ae Merge remote-tracking branch 'origin/main' into pr-3609-fixup
# Conflicts:
#	apps/photocraft/src/services.rs
2026-10-27 14:29:13 +01:00
David Mann 77f7914271 Merge PR #9455: raw: develop the default rendering band by band, without the f32 RGB frame 2026-10-27 14:28:29 +01:00
David Mann 19d0be04b1 Merge branch 'main' into pr-3779-fixup
# Conflicts:
#	crates/engine/src/cmd.rs
2026-10-27 14:27:41 +01:00
David Mann 3a689f217c Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/file_cmds.rs
#	crates/engine/src/retouch_cmds.rs
#	crates/engine/src/vector_cmds.rs
#	crates/io/src/psd_export.rs
#	crates/io/src/psd_import.rs
#	crates/io/src/smart_map.rs
#	crates/psd/src/layer.rs
#	crates/raster/src/lib.rs
#	crates/ui-egui/src/camera_raw_ui.rs
#	crates/ui-egui/src/canvas.rs
#	crates/ui-egui/src/filter_dialog.rs
#	crates/ui-egui/src/gpu_canvas.rs
#	crates/ui-egui/src/panels.rs
#	crates/ui-egui/src/retouch_ui.rs
#	crates/ui-egui/src/transform_tool.rs
#	crates/ui-egui/src/vector_ui.rs
#	docs/gaps.md
2026-10-27 14:26:26 +01:00
David Mann 7567bf56d4 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/edit_menu_cmds.rs
#	crates/ui-egui/src/transform_tool.rs
2026-10-27 14:25:22 +01:00
David Mann d824b431a0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/canvas.rs
2026-10-27 14:25:20 +01:00
0b09eb43a5 Integration: per-band AHD balancing, memory-capped fused bands (#9455)
`for_bands_grouped` always split the bands into `min(workers, jobs)` static
chunks, so on the default develop (jobs == workers) a worker held up on the
shared pool kept a fixed share of the bands waiting, where main's
`chunks_mut_limited` runs one rayon task per band. Now, when every worker may
hold a scratch, each band is its own task and borrows a scratch from a pool
(`par::chunks_mut_pooled`, at most one per worker, dropped as soon as no
waiting band can use it); the grouping stays for memory-limited jobs.

The fused bilinear/MHC, X-Trans and LinearRaw paths ran one band per worker
with no memory cap: a 262144 x 455 Bayer frame with bilinear needed 2.92 GB
at 15+ workers and failed with LimitExceeded under the default 2 GiB.
`working_memory` now caps those bands like AHD's and the fused paths use the
returned jobs. The fused LinearRaw and X-Trans band buffers are `band.min(h)`
rows, as charged (CodeRabbit, develop.rs:414).

Tests: a_slow_band_does_not_hold_up_the_bands_after_it and
fused_bands_at_once_are_capped_by_the_memory_limit fail without the fix;
for_bands_keeps_at_most_jobs_scratches_alive, chunks_mut_pooled_makes_one_state_per_worker_at_most,
multi-band and short X-Trans/LinearRaw fused-vs-full cases.

Co-authored-by: Valentin Klein <271991477+vangel76@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:24:57 +01:00
David Mann 55a0ba21d9 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/atn_cmds.rs
2026-10-27 14:24:33 +01:00
David Mann 6f7acded9e Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/control.rs
2026-10-27 14:23:53 +01:00
David Mann fc81603899 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/layer_multi_cmds.rs
2026-10-27 14:23:16 +01:00
cefd60d10f Integration: drop the selection after a shared transform; don't snap to its layers (#8623)
With several layers selected and a marquee active, Free Transform in the
reference application moves the whole layers and drops the selection.
`edit.transform {"layers"}` moved the layers but left the marching ants
where they were. It now clears the selection in the same edit, so one undo
restores both. The live preview keeps showing the selection.

Snapping a shared box excluded only the active layer, so the box snapped
to the original edges of the other selected layers, which move with it.
Its edge starts on theirs, so a 2 px drag snapped straight back. It now
excludes every layer of the shared session.

Co-authored-by: eiketre <71788463+ekedal@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:22:59 +01:00
David Mann c2609adbb5 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/cmd/type_cmds.rs
#	crates/engine/src/lib.rs
#	crates/ui-egui/src/lib.rs
#	crates/ui-egui/src/panels.rs
2026-10-27 14:22:33 +01:00
David Mann 8b703ae20f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/canvas_tool_menu.rs
#	crates/ui-egui/src/vector_ui.rs
2026-10-27 14:22:26 +01:00
David Mann 93036e6b68 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/prefs.rs
#	crates/ui-egui/src/dialogs/sizing.rs
#	crates/ui-egui/src/prefs_ui.rs
#	docs/gaps.md
2026-10-27 14:21:35 +01:00
midasdf 4289feaf16 Merge origin/main into jp/print-paper-sizes
main split crates/ui-egui/src/file_ui.rs into dialogs/file_ui/ and deleted
the old file, and moved the engine's print module under cmd/. The print
dialog's paper work goes to dialogs/file_ui/print.rs: print_paper_label for
the Japanese presets, paper_size() for alias-aware lookup, and the canonical
key shown when file.print remembered an alias. The engine change (PAPERS
with the Japanese sizes, PAPER_ALIASES, paper_size) merged into
crates/engine/src/cmd/print_cmds.rs unchanged.
2026-10-27 22:20:59 +09:00
David Mann b58449985f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/cmd/type_cmds.rs
#	crates/engine/src/edit_cmds.rs
#	crates/engine/src/layer_multi_cmds.rs
#	crates/engine/src/lib.rs
#	crates/ops/src/lib.rs
#	crates/ui-egui/src/lib.rs
#	crates/ui-egui/src/menus.rs
#	crates/ui-egui/src/move_mods.rs
#	crates/ui-egui/src/panels.rs
#	crates/ui-egui/src/transform_tool.rs
2026-10-27 14:20:51 +01:00
David Mann dc45a83c88 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/automation/src/rpc.rs
#	crates/automation/src/workspace.rs
2026-10-27 14:20:28 +01:00
dotCooCoo 655a81fc92 Merge main and accept SVG clipboard text after long XML preambles 2026-10-27 06:20:02 -07:00
David Mann 854cea1e12 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/web_cmds.rs
#	crates/ui-egui/src/prefs_ui.rs
2026-10-27 14:19:38 +01:00
David Mann f3d2621a86 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/adjust_editors.rs
#	crates/ui-egui/src/panels.rs
#	crates/ui-egui/src/type_tool.rs
#	crates/ui-egui/src/widgets.rs
2026-10-27 14:19:35 +01:00
David Mann 3e15ea9eb9 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/compose/src/adjust.rs
#	crates/gpu/src/plan.rs
#	crates/io/src/adjust_map.rs
2026-10-27 14:19:34 +01:00
David Mann ac071b7cac Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/automation/src/workspace.rs
2026-10-27 14:19:02 +01:00
David Mann 40b1318bd3 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/image_cmds.rs
2026-10-27 14:18:35 +01:00
David Mann a95536f711 Merge remote-tracking branch 'origin/main' into fix/xml-nesting-cap 2026-10-27 14:17:47 +01:00
David Mann a76c735f06 Merge remote-tracking branch 'origin/main' into fix/system-tools-full-path 2026-10-27 14:17:40 +01:00
David Mann f2d4ab5683 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/image_cmds.rs
2026-10-27 14:17:39 +01:00
David Mann d9dfe34db8 Merge remote-tracking branch 'origin/main' into fix/svg-subimage-depth 2026-10-27 14:17:34 +01:00
David Mann b519d300ea Merge remote-tracking branch 'origin/main' into fix/svg-markup-check 2026-10-27 14:17:27 +01:00
David Mann 2363c475c0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/compose/src/lib.rs
#	crates/gpu/src/plan.rs
2026-10-27 14:17:25 +01:00
David Mann dad44599e0 Merge remote-tracking branch 'origin/main' into fix/svg-guard 2026-10-27 14:17:20 +01:00
David Mann 711110ae6b Merge remote-tracking branch 'origin/main' into fix/svg-filter-cost-9409 2026-10-27 14:17:13 +01:00
David Mann 022aadee89 Merge remote-tracking branch 'origin/main' into fix/svg-fallback-cmap-cache 2026-10-27 14:17:06 +01:00
David Mann d3419e5c6c Merge remote-tracking branch 'origin/main' into fix/scale-effects-bevel-texture 2026-10-27 14:16:59 +01:00
David Mann 24de5547e6 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/adjust_editors.rs
#	crates/ui-egui/src/type_tool.rs
#	crates/ui-egui/src/widgets.rs
2026-10-27 14:16:58 +01:00
David Mann 38a0f44ec6 Merge remote-tracking branch 'origin/main' into fix/remove-enable-animations 2026-10-27 14:16:50 +01:00
David Mann 77d410ca88 Merge remote-tracking branch 'origin/main' into fix/psd-size-encoded 2026-10-27 14:16:43 +01:00
David Mann f010d8b6a1 Merge remote-tracking branch 'origin/main' into fix/plugin-empty-code-section 2026-10-27 14:16:34 +01:00
David Mann 00bc04344d Merge remote-tracking branch 'origin/main' into fix/match-rotation-crop-turn 2026-10-27 14:16:26 +01:00
David Mann e7f810a406 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/channel_cmds.rs
#	crates/engine/src/edit_cmds.rs
2026-10-27 14:16:23 +01:00
David Mann 793b2942de Merge remote-tracking branch 'origin/main' into fix/image-size-resolution-range 2026-10-27 14:16:18 +01:00
David Mann 718636e55e Merge remote-tracking branch 'origin/main' into fix/history-options 2026-10-27 14:16:11 +01:00