21 Commits
Author SHA1 Message Date
dholzricandClaude Fable 5.2 0df43a4e7f Copy CSS: grey it for the states the reference greys (#18301)
Layer > Copy CSS stayed enabled for a smart object, a hidden shape layer,
two or more selected layers and in CMYK, Grayscale, Lab and Indexed
documents. Its enabled check now refuses each of these with a reason.

has_css is unchanged, so what a group writes is unchanged. Hidden layers of
other kinds and the document modes that were not measured stay enabled.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-30 18:01:48 -06:00
BFlat 71bc742294 Merge pull request #17447 from ruchirguitar/digits-indic-10996
Type: draw digits in an Indic script, Western or by the letters before them (#10996)
2026-11-30 02:19:15 +07:00
bflatastic 45b2b55493 Type: the perturbed character style sets digits too (#10996) 2026-11-30 01:28:52 +07:00
RickiNano 1a63bb9068 Auto-Align Vignette Removal: thin K when C, M and Y can't carry it; Lab without a cast (#14197)
- CMYK: the light the inks let through is brightened once and re-encoded.
  C, M and Y thin out while they can carry it, and K thins out as far as
  the brightest light needs, so a grey printed in K alone brightens too.
  Where C, M and Y can carry it, the result is as before.
- Lab: the estimate reads one channel, L as sRGB-encoded luminance, and
  the correction brightens that light and turns it back into L. a and b
  grow with (L* + 16), as they do when the light itself is brighter, so a
  neutral pixel stays neutral instead of taking a cast.

New tests: shifted_vignetted_cmyk_layers_in_black_ink_alone_come_out_flatter_with_their_corners_brightened,
shifted_vignetted_lab_layers_come_out_flatter_without_a_colour_cast.
Both fail without the change.
2026-11-29 12:22:51 +01:00
RickiNano 1ebc72122f Auto-Align Vignette Removal: fit CMYK light, keep the reference in one frame (#14197)
- The estimate read CMYK samples as they are stored, as ink, which grows
  towards darkened corners, so it fitted ink growth and then brightened
  the light. It now reads the red, green and blue light the inks let
  through. The correction brightens the light of C, M and Y only: K's
  light multiplies theirs, so brightening it too would brighten twice.
- With Geometric Distortion fitting a nonzero k1, the reference's
  placement carries that k1 but its pixels stay as they are. The
  estimate now reads the reference warped by its placement, as it reads
  the layers that moved, and its correction measures radii with k1 = 0,
  in its own pixels.

New test: shifted_vignetted_cmyk_layers_come_out_flatter_with_their_corners_brightened.
2026-11-29 12:09:33 +01:00
RickiNano acb96f504b Auto-Align Layers: Vignette Removal brightens the aligned layers' corners (#14197)
edit.autoAlignLayers takes vignetteRemoval (bool, default false). It
estimates one radial falloff from the layers' overlaps with Photomerge's
estimator, read on a copy box-averaged to at most 1024 px across, with
exposure gains solved beside it and dropped, then divides the falloff out
of every aligned layer, the reference of a planar layout included unless
its pixels are locked. Collage and Reposition ignore it, as the dialog
clears it there. The result carries the falloff, and a warning when the
overlaps show none (layers that nearly coincide) or a locked reference
was left as it was. A wrong-typed value is an error.
2026-11-29 08:43:07 +01:00
David Mann 9b2cd89b21 Merge #16183 into the merge queue batch
Auto-Blend Stack Images: the bottom layer shows everywhere (#14212)
2026-11-25 17:31:40 +01:00
David Mann ce4f3b87c9 Merge #16689 into the merge queue batch
Direct Selection: consecutive arrow nudges are one "Nudge Path" step (#13204)
2026-11-25 13:28:29 +01:00
David Mann 3bd9c0deb0 Merge #16411 into the merge queue batch
Layer Comps to Files: comment in the name, dashes in PNG names, .tif and .jpg (#13940)
2026-11-25 13:28:24 +01:00
RickiNano baea3f6ef8 Layer Comps to Files: a part that fits keeps its trailing space (#13940)
`clip_bytes` trimmed trailing spaces even when it didn't cut anything,
so a sanitized prefix such as `A ` (from `A .`) lost its space in a
short file name. It now returns a part that fits unchanged and trims
only the end a cut leaves.
2026-11-25 07:28:31 +01:00
RickiNano 3fc42fdab2 Layer Comps to Files: a cut part leaves out the parts after it (#13940)
When a part of the file name was cut, the bytes left over (less than one
character of it) could still hold a later, lower-priority part: a cut
comp name could lose its last character while a one-letter comment
stayed. Now a cut prefix leaves out the name and comment, and a cut
name leaves out the comment.
2026-11-25 07:24:40 +01:00
RickiNano 5bc0153391 Layer Comps to Files: a long comment is shortened, not a failed export (#13940)
The comp comment is appended to the file name, and nothing limited the
length, so a comment of a few sentences gave a name past the 255-byte
file name limit and the save stopped the whole export at that comp.

`comp_file_name` now builds `<prefix>_<index>_<name>[_<comment>].<ext>`
within 255 bytes (which also keeps it within Windows' 255 UTF-16 units).
A name that doesn't fit loses the end of its comment first, the whole
comment with its `_` when none of it fits, then of the comp name, then
of the prefix. The index and extension always stay, and every cut falls
between characters.

The new test exports a comp with a six-sentence comment (with umlauts)
and the comp after it, as PNG and TIFF; without the change the export
fails at the first comp. The names tests now export into a folder per
run, so the PNG tests no longer share one.
2026-11-25 07:16:04 +01:00
RickiNano ea21d77e08 Direct Selection: consecutive arrow nudges are one "Nudge Path" step (#13204)
The arrow-key nudge of the selected anchors joins the app's run of nudges
(nudge_bundle, as the Move tool does): nudges of the same anchors share one
coalesce key, so the engine folds them into one History step, named
"Nudge Path" through path.moveAnchors' stepName. Another anchor selection,
any other edit or a pause starts a new step.
2026-11-24 20:49:56 +01:00
x-labb f5ee04545a fix(engine): Auto-Blend Layers is unavailable with a type layer or smart object selected (#14204)
Auto-Blend collected only the selected pixel layers, so with a type layer or a smart object in
the selection it blended the pixel layers and ignored the rest. The reference application
refuses: the command is not available and no history state is added.

Gives Auto-Blend its own enabled check (a type layer or smart object among the selected layers
makes it unavailable) and the same guard at the start of the run. Auto-Align keeps its check.
2026-11-24 20:40:11 +01:00
RickiNano 834f641fd5 Auto-Blend Stack Images: keep the bottom masked under Blend If, a shapeless knockout or an opaque default
Revealing the bottom must leave the composite as the complementary masks drew it. Three more cases broke that:
- Blend If on the top hides top pixels the weights count as covering; the reveal showed the bottom there.
- A bottom whose Advanced Blending acts (a deep knockout with Transparency Shapes Layer off) knocks out
  wherever its mask shows, so a reveal-all mask cleared the layers beneath past the blended area.
- content_bounds leaves out pixels equal to the surface's default, so an opaque default showed past the
  blended area once the mask revealed it.

Each now keeps the old masks, with a regression that fails without the check.
2026-11-24 11:53:23 +01:00
RickiNano 5da64cdb9b Merge remote-tracking branch 'origin/main' into s18-16183
# Conflicts:
#	crates/engine-vector/src/cmd/align_cmds/auto_blend_stack_bottom_mask_tests.rs
2026-11-24 11:53:23 +01:00
RickiNano b77e6333ed Merge remote-tracking branch 'origin/main' into fix/13940-comps-to-files-names 2026-11-24 08:48:57 +01:00
aiongg 4a136a64bb Path delete test: start from an installed session 2026-11-24 04:56:42 +00:00
aionggandDan 32704afb63 Path Selection Delete removes paths, not the layer; Properties eyedropper picks
With Path Selection, Delete removes the selected components of a shape
layer, saved path or vector mask (path.deleteComponents), or the targeted
saved path when nothing is selected, instead of deleting the layer.

The Properties panel Fill and Stroke popovers now hold the screen pick and
feed the sampled colour back, as the options bar does.

Fixes #13269

Co-authored-by: Dan <[email protected]>
2026-11-24 04:56:42 +00:00
aiongg 6d73dcee09 Engine split step 8: the vector crate (install, incomplete-docs list, layer comp recorded step, top wiring, corpus feature, core items vector uses made public, tooling) 2026-11-24 02:41:56 +00:00
aiongg eb982b0c82 Engine split step 8: engine_cut.py split vector (vector modules to crates/engine-vector/src) 2026-11-24 02:41:56 +00:00