Commit Graph
16972 Commits
Author SHA1 Message Date
BFlat 942a65b16c Merge pull request #8144 from dotCooCoo/fix/flat-logo-soft-edge-slivers-v2
Image Trace: Flat Logo traces blurred black edges beside gray without gray slivers
2026-11-16 23:05:43 +07:00
dotCooCoo 685ab7ccd4 Ellipse: a click on the word Height in the click dialog copies Width into Height
The Ellipse dialog's Height label is now a button. A click, or Space or
Enter while it has the keyboard focus, copies the Width value into the
Height field, so OK draws a circle. The Rectangle and Rounded Rectangle
dialogs keep plain labels.

With Constrain Width and Height Proportions on, the link stays on and keeps
the circle when a side is typed next. A Width that is empty or not a
distance, including one the field refuses as the click leaves it, leaves
Height unchanged. Enter on the Height button or on the link button no
longer also presses OK.

Screen readers read the button as "Height:", which still names the Height
field, with the description "Copy Width to Height" (translated in every
catalog).
2026-11-16 08:05:40 -08:00
BFlat 75e3b7b4d3 Merge pull request #8147 from dotCooCoo/feat/color-guide-save-selected-cells
Color Guide: Save Color Group to Swatches saves the selected cells as the group
2026-11-16 23:05:34 +07:00
BFlat 3275ae1951 Merge pull request #8132 from dotCooCoo/feat/magic-wand-cmyk
Magic Wand: Fill Color and Stroke Color tolerances compare CMYK values in a CMYK document
2026-11-16 23:05:25 +07:00
BFlat ee59999a00 Merge pull request #7982 from dotCooCoo/feat/common-tangents
Path Precision Tools: Common Tangents draws the lines touching two closed paths
2026-11-16 23:05:15 +07:00
dotCooCoo a187449f7c Legacy .ai: gradient and spot color names are numbered with a set and a counter per name
Saving a legacy .ai file numbered a gradient definition whose name was
taken by searching every definition written so far for each number it
tried, so a document with many distinct gradients without a swatch name
spent time cubic in their count naming them. Spot color names were
numbered the same way.

Both now keep the names given in a set and, for each name, the number to
try next. Names are never given back, so every number below that counter
is still taken, and the file is the same as before: the first free
"Name 2", "Name 3" and so on, with equal gradients sharing a definition.

- New tests compare the counters with a search of the names given over
  3,000 names, and the whole written file both ways for colliding
  gradient and spot color names.
- An ignored timing test writes 1,504 gradient definitions: in release on
  Linux, the median of 7 runs took 23 ms of thread CPU time against
  1,163 ms for the search.
2026-11-16 08:02:35 -08:00
dotCooCoo 08c1684cd5 Symbols: hit tests keep measured symbol art boxes until the symbols change
Every click, hover, Select Behind list and marquee made new symbol boxes
and measured the art of each symbol its instances show again, and so did
the locked-artboard check each of them made. With 20,000 instances of
8,000 different symbols a click took 27 to 33 ms.

Hit tests now start from the art boxes, nesting depths and name index
that earlier hit tests measured on the same thread, for the last two
sets of symbols. The locked-artboard check of a hit test starts from the
same art boxes, and what it measures is kept with the rest. The boxes
are measured again when a symbol's name or art, the 9-slice guides or
the inputs of clipping-path effects change. The kept list holds a weak
pointer to each symbol's art, so it does not keep a closed document's
art alive, and art changed in place no longer matches. Art boxes of
symbols whose art holds 9-slice instances are measured on each call, as
before.
2026-11-16 08:00:28 -08:00
dotCooCoo 8797e43f4d Merge main into feat/graphic-styles-drag-to-new-duplicates 2026-11-16 07:58:37 -08:00
dotCooCoo 139f881f81 .ai import: a refused PDF part's error says why the editing data couldn't be read
When the import refuses a file's PDF part and its editing data can't be
read either, the error named only the PDF part. It now adds "its editing
data couldn't be read either (<why>)", as layers already do
(crates/eps/src/import.rs). The reasons come from the editing data
reader (a size limit, damaged compression) and from the private data
streams (larger than 256 MB, another filter or decode parameters,
damaged zlib data). A file without editing data, and an open with pages
picked, layers off or the editing data off, keep the PDF part's error.

Part of #4366.
2026-11-16 07:56:57 -08:00
dotCooCoo 72a6c4fe01 MCP: a confined package searches the whole attachment tree and keeps its read roots when written later
The search for a PDF's editing file stopped 16 levels deep in the
attachment name tree, so an editing file listed deeper read as absent
and a confined package copied the PDF without checking its stored
paths. The search now walks the tree at any depth, each indirect node
once, up to 65,536 nodes; a tree with more nodes counts as listing the
editing file, so a confined package refuses the PDF.

A prepared package (Session::prepare_package) now keeps the read roots
in force where it was prepared, and Package::write collects under them
on any thread.
2026-11-16 07:56:22 -08:00
dotCooCoo a2f17e08fd Command Palette: a search also matches what a command's description says
A query word now also finds a command by its description: the command's
params text (an engine or plug-in command's, a UI command's, or an
effect's) without each top-level {…} group, without each top-level [ ]
or ( ) group just after a →, and without the → before a removed group,
cut to its first 300 characters at the end of a word. "transparent
background" lists Remove Background… among the first 3 results, and
"png" lists it after every result with "png" in its name or menu path.
A schema's words ("corners" for Remove Background…) and a result written
as a group do not find the command; a result written as words after a
→ stays in the description.

A description word matches as a whole word, an English base word, a word
start or a word with the same meaning. A result found only that way
ranks below every result the query matches in its name, menu path or id,
as text inside a word or through a typo. Words of 2 characters or fewer,
words with no letter and a few stop words are left out. Descriptions
are English only and are not typo-matched.

The depth-and-quote scan of the Keyboard Shortcuts editor's required
field check moves into shortcut_editor::outside_quotes, which the
description reader also uses; the check behaves as before.
2026-11-16 07:55:06 -08:00
dotCooCoo dd1a6a45bd Image Trace: Full Tone merges and cuts with less repeated work
merge_mixed works out each color's Oklab value once, and again only for
the color that takes in another, and skips the distance for two colors
mixed too little to merge under either test. Median cut plans the cut of
a narrow box only while there are fewer boxes than the least count. The
traced SVGs are byte-identical for the six presets on 19 test images;
High Fidelity Photo's trace time for all 19 falls from 35.3 to 31.5 s.

The quality notes give High Fidelity Photo in Full Tone its own section,
say how far merging can bring the color count below the least count,
and state the measured trace time, memory and cost on grainy flat grays.
A test checks that a grainy dark gray traces with about as many colors
and shapes as a grainy light one, and the noisy ramp test's comment
gives the counts this tree measures.
2026-11-16 07:54:58 -08:00
dotCooCoo 33f464faac Merge main into perf/anchors-many-set 2026-11-16 07:54:42 -08:00
dotCooCoo f4c395f143 Lists: a numbered paragraph can start at a chosen number or restart at 1
Bullets and Numbering's Numbers tab gets a Start at box and number, and
text.setFormat takes startNumber (1 to 999999999) and restartNumbering.
The number goes to the first numbered paragraph the call touches that
holds text, and the numbered paragraphs after it at its level count on
from it, through threaded frames too. restartNumbering false removes the
numbers. A bad value, or both keys at once, is an error, and a call that
changes nothing records no undo step.

The native file saves the number as the list's "start" only when it is
set. A paragraph made with Return does not take it, a paragraph style
does not keep it, and Convert to Text and the exports write the numbers
the paragraphs show.

Part of #2473
2026-11-16 07:50:46 -08:00
dotCooCoo 5371149bf1 Select: anchorsMany updates the selected objects in one pass
select.anchorsMany, which the Direct Selection and Group Selection
marquees, the Lasso and Smart Pen send, checked and changed membership
through Selection::contains, add and remove for each item, each a scan
of the selected objects. It now keeps the selected objects in a map
while the items run and writes them back once. The objects, their
order, the anchors, segments, key, key anchor and the other selection
fields come out as before, repeated ids and ids deselected and
selected again included.

Tests compare the result with the item-by-item loop for every mode,
four starting selections and fifteen item lists, and bound the passes
over the selected objects. An ignored benchmark times both loops on
2,000, 20,000 and 50,000 rectangles.
2026-11-16 07:50:19 -08:00
dotCooCoo 7508f7cfe3 Graphic Styles: a style dropped on New Graphic Style is duplicated at the end of the list
A graphic style dragged from the panel onto the New Graphic Style button
runs Duplicate Graphic Style. The button takes the drop with no art
selected and is outlined while a style is held over it. A dragged style
that is highlighted brings the other highlighted styles, copied in panel
order in one undo step, and the copies are highlighted.

graphicStyle.duplicate now adds the copy at the end of the list instead
of right after its source, for the panel menu's command and the drop.

The list's drop zone no longer reaches over the footer when the list is
shorter than 220 pt, so a style released on New Graphic Style or Delete
is not moved to the end of the list.
2026-11-16 07:49:56 -08:00
dotCooCoo ecc6cd4c7c Merge main into feat/area-type-first-baseline-em-box 2026-11-16 07:48:10 -08:00
dotCooCoo 24e528abcf Type: Area Type Options First Baseline offers Em Box Height
First Baseline gains Em Box Height (`text.areaOptions {firstBaseline:
"emBoxHeight"}`, and the Area Type Options dropdown). The top of the
first line's ideographic em box, the largest on a line of several sizes,
touches the top of the type area inside the inset, in each row/column
cell and in vertical type. It is the em box that Top-to-Top leading
uses. Min is the least distance, as with the other kinds.

Native files save it as `emBoxHeight`. The .ai reader reads editing-data
kind 5 as Em Box Height and the writer writes it back; Legacy (6) and
unknown kinds keep today's fallback.

The dropdown's Ascent and x Height labels, and Fixed in Gujarati, get
the catalog rows nine languages were missing, beside the new label in
every catalog.

Help page: https://helpx.adobe.com/illustrator/desktop/design-with-text/add-manage-text/add-margins-to-text-and-adjust-the-first-baseline.html
2026-11-16 07:40:47 -08:00
dotCooCoo 9b1823c54c Pathfinder: Shape Mode buttons warn when a line encloses no area
Unite, Minus Front, Intersect, Exclude and Minus Back close open paths,
so a straight line encloses no area and does not change the result.
Until now the line was dropped with no message. Reported in #7849.

- The reply of object.pathfinder.unite, minusFront, intersect, exclude
  and minusBack now carries a warning, which the status bar shows, when
  a selected object is or holds an open path that encloses no area once
  closed (a line in a group or compound path included). The message
  names Object › Path › Outline Stroke. The area is measured with the
  path's fill rule, as Make Compound Shape's check in #7894 does.
- When such a path is what leaves the result empty (Intersect, or a
  line at the back in Minus Front), the error says so. Objects that
  leave nothing without the line keep the plain error.
- Both messages have rows in each complete-message catalog. The params
  text and docs/mcp.md describe the reply field.
2026-11-16 07:37:40 -08:00
dotCooCoo ccee41cae8 Tests: canvas tests keep their color settings when a parallel test changes them
The active color settings are process-wide. A test on another thread that
sets them, or opens a document with its own profiles, can change them
between two renders of a canvas test. Frame keys hold the guide color
converted through the settings, and effect rasters are made again when the
settings change, so the second render no longer matched the first.
a_drag_over_a_wide_blur_draws_the_blur_from_the_still_frame and
cached_frames_keep_their_scale_during_resize_rotation_and_dpi_changes
failed this way in full parallel runs of the crate's tests.

- The 20 canvas tests that compare two renders (frame keys, raster reuse
  or pixels) now run inside cms::with_active with the settings that are
  active when they start (keeping_color_settings).
- The tests that ran a real render worker and waited up to 60 seconds for
  its frames (the wide blur drag, the drag with raster effects and the
  turned view) use a controlled worker. The test thread renders its jobs
  with render_worker::render, the function the worker thread now calls.
- The placed bitmap test waits for the bitmap without a 20-second limit
  or sleeps.
2026-11-16 07:36:28 -08:00
dotCooCoo 6a66f9ad94 Type: decomposed Cyrillic and capital words hyphenate as their composed spelling
A Russian or Bulgarian word written with a combining breve (`и` + U+0306
for `й`) failed the Cyrillic script check and stayed whole; the check now
reads the composed word, so it breaks at the same characters as `чайник`.
A stress mark, which composes with nothing, still keeps the word whole.

The all-capitals guard skipped a decomposed capital such as `O` + U+0308,
since a combining mark has no case, so `ÖĞRENCİ` spelled that way was
hyphenated in Turkish; the guard now counts only the letters.
2026-11-16 07:33:39 -08:00
dotCooCoo 60ae8985fc Print: Overprint Black overprints solid black art on separations
The Print dialog's Output section has an Overprint Black checkbox under
Convert All Spot Colors to Process, off by default and available with
Separations (print.setup output.overprintBlack, kept with the document
and in print presets). With it on, solid 100% process K or 100% gray
fills, strokes and characters, and gradients whose every stop (or every
freeform point) is, overprint in the printed copy, so the inks under them
stay on the other plates. Rich, RGB, Lab, spot-linked and lighter blacks
knock out. The document and its own overprint settings do not change, and
composite output ignores the option.

Plates draw an overprinting paint that puts no ink on them as nothing, so
PostScript separations keep the inks below it too. Overprinting character
fills and strokes now darken on PDF plates like fills and strokes, a type
object's own fill in a PDF is drawn with its blending mode, and Edit >
Edit Colors > Overprint Black counts a gradient with a spot-linked stop as
a spot black and a freeform gradient by its color points.
2026-11-16 07:33:12 -08:00
dotCooCoo b4f23804e1 Symbols: New Symbol ignores a symbol dragged from another document
A symbol drag from the Symbols panel keeps the document it started in. A drop on New Symbol after another document became active, even one with a symbol of the same name, makes no copy.
2026-11-16 07:30:22 -08:00
dotCooCoo 33e7a8893b Cut: take the cut objects out of the selection in one pass
Clear with `ids`, which Cut uses for the objects it copied, removed each
id from the selection with its own scan of the selected objects. It now
calls Selection::remove_all once, which gives the same selection.

With 50,000 objects selected and all of them cut, the selection step
takes 5.5 ms instead of 572 ms (release build, median of 7 wall-clock
runs, measured while other builds were running). The new tests compare
the result with removing each id in turn, including Undo and Redo, and
an ignored benchmark times both.
2026-11-16 07:25:45 -08:00
dotCooCoo 52b4b03920 Symbols: render and SVG/PDF export find each instance's symbol in one index
Drawing or exporting a symbol instance looked its symbol up by scanning
the document's symbol list, so a document with many instances and many
symbols spent most of a frame or an export on name comparisons. The
renderer, the SVG and PDF writers and the export walks now find symbols
through SymbolBoxes::symbol, which builds the name index once per frame,
export or walk and returns the first symbol of a name as before.

- Renderer: plain instances, inline graphics, instances with object
  effects (their art and the symbol budget) and the effect bounds.
- SVG export: instance art, symbol defs and their reuse check, and the
  paint reach of filter regions.
- PDF export: instance art, inline graphics and the brush search of
  knockout masks.
- Export warnings and artboard crops measured what each object paints
  with new symbol boxes per object, which built the name index again for
  every instance. painted_bounds_with and drawn_outline_with take the
  boxes once; Object › Rasterize's clipping mask uses them too.
2026-11-16 07:24:45 -08:00
Dylan M. Taylor 7ab07b560d eps: delegate hex bodies to shared ASCIIHex decoding 2026-11-16 10:23:55 -05:00
yoriswind bda1c489d5 M2: reconcile Eraser fill preservation with main (#6582) 2026-11-16 07:22:56 -08:00
dotCooCoo 783f7bb9bb Image Trace: High Fidelity Photo traces in Full Tone with abutting shapes
High Fidelity Photo traced with a Limited palette of 64 colors as
overlapping shapes. It now traces with Palette Full Tone at Color detail
85 and Method Abutting; Paths, Corners and Noise stay 50, 50 and 5.
These are VectorCraft's own values.

Palette Full Tone splits its colors until none is wider than its limit,
then, while it has fewer colors than Color detail's value, splits the
narrower ones too, where the image has that many. Its colors then merge
as one only when they look alike: thoroughly mixed and less than 5 apart
in Oklab x 100, or mixed in patches (compression blocks) and less than
1.5 apart. This applies to every Full Tone trace, so an existing Full
Tone trace or saved preset traces differently when traced again.
Automatic's continuous-tone colors keep the earlier count and the RGB
merge.

On 19 photos, cartoons and synthetic shapes, the mean pixel difference
summed over the inputs falls from 80.5 to 65.6 levels: by more than 1%
on 14 inputs and by less than 1% either way on the other 5. Anchors
rise 1.66 times, the SVG size 1.31 times and the trace time 1.9 times;
flat synthetic art costs the most (12 to 400 anchors on one image).
Low Fidelity Photo, 16 Colors, 6 Colors, Black and White Logo and Auto
Color give byte-identical results.

Supersedes #2699 by andeecollard, which moved the photo presets to Full
Tone.
2026-11-16 07:18:12 -08:00
dotCooCoo 5daa65c72a Color Guide: a harmony color or variation dragged onto the Swatches panel becomes a swatch
The harmony strip and the variation cells start a paint drag with the
primary button. The drag carries the grabbed color as the cell shows it
(snapped to the Limit to Library colors), and the Swatches panel's
existing drop makes a swatch of it with swatch.new: one undo step, the
color's own model, a drop on a color group joins that group, and a color
that is already a swatch is added again under another name. Starting a
drag does not apply the color or change the base or the selected cells,
and a plain click still applies the color as before.
2026-11-16 07:17:23 -08:00
dotCooCoo be27667228 EPS Options: Custom… sets the flattener options the export uses
EPS Options gets a Custom… button beside the flattener Preset. It opens
Custom Transparency Flattener Options over EPS Options, on the options the
export would use (the raster/vector balance, both resolutions, the outline
switches, Clip Complex Regions and Anti-alias Rasters). OK sends them as
`flattener` with the export, and the preset shows [Custom] when they
differ from its options; Cancel goes back unchanged. Choosing a preset,
in the dropdown or with `ui.dialog.set`, drops the custom options.
Preserve Alpha Transparency stays off for EPS, and overprints follow the
Overprints choice.
2026-11-16 07:16:50 -08:00
FredApps 94b88582b7 Merge remote-tracking branch 'origin/main' into refactor/eps-shared-write 2026-11-16 16:11:54 +01:00
Dylan M. Taylor ae86489406 render: delegate TIFF and EPS PackBits encoding to craft-stream-codecs 2026-11-16 10:08:08 -05:00
dotCooCoo 4ded8dcdb5 Merge main into feat/hyphenation-languages 2026-11-16 07:07:41 -08:00
dotCooCoo 7d4aa9d8ab MCP: the ui.expandDialog mirror lists immediate and the kept choices
crates/mcp/src/ui_catalog.rs now matches the desktop entry in
crates/ui-egui/src/menus/ui_commands.rs, so cargo xtask ui-commands --check
passes and MCP discovery lists the immediate parameter.
2026-11-16 07:02:57 -08:00
dotCooCoo 69cc81452e MCP: a confined package refuses a PDF whose editing file can't be resolved
A linked PDF or .ai file that lists the editing file among its
attachments, but whose file specification, EF dictionary or F or UF
stream can't be resolved, was taken for a file without editing data and
copied without its stored paths being checked. Under read roots,
file.package now refuses it with the error for editing data that can't
be read. Opening such a PDF is unchanged.

The plug-in export test removes its folders when it ends.
2026-11-16 06:58:12 -08:00
dotCooCoo 7f72a7c46d Links: Unembed writes several selected embedded images to one chosen folder
The Links panel menu's Unembed… now works with several embedded images
selected: it asks for one folder, writes a file for each image there in
the format the image is stored in, and links each image to its file,
keeping its bounds, in one undo step. On the web each image is
downloaded instead.

links.unembed takes `ids` and `folder` for this form. Each file is named
after its image, with characters a file name can't hold replaced by `_`;
a taken name is numbered (`Name 2`), and a file already in the folder is
never replaced. Linked images among `ids` are skipped and listed. When an
image can't be written, the files the call wrote are removed and the
document does not change. A folder outside the automation write roots is
refused. The one-image `{id, path}` form is unchanged.
2026-11-16 06:55:58 -08:00
dotCooCoo 622cf94f5b Merge main into feat/symbols-drag-to-new-duplicates 2026-11-16 06:53:56 -08:00
dotCooCoo 359a7a2be5 Symbols: a symbol dragged onto New Symbol is duplicated
A symbol dragged from the Symbols panel, in thumbnail view or a list
view, and released on the New Symbol button is copied as Duplicate
Symbol copies it (symbol.duplicate), with no Symbol Options dialog, in
one undo step. The drop works while no art is selected and the button
is disabled for clicks. The copy is made of the dragged symbol, not the
current one, and the current symbol and the selection stay as they
were. The button is outlined while a symbol of the document is held
over it; a library symbol, art or a name the document no longer has is
ignored.
2026-11-16 06:53:55 -08:00
dotCooCoo 5ffd22ee5b Merge main into feat/rounded-rect-dialog-corner-radius 2026-11-16 06:51:00 -08:00
dotCooCoo af1ebff88b Merge main into feat/color-guide-drag-to-swatches 2026-11-16 06:50:48 -08:00
dotCooCoo e6dc0f0930 Rounded Rectangle: the click dialog opens on General › Corner Radius, and OK makes its radius the default
A click with the Rounded Rectangle tool opened the size dialog at a fixed
12 pt radius, and the radius typed there drew one shape without changing
General › Corner Radius. The dialog now starts from the preference, and OK
sets the preference to the radius drawn (in any unit), so the next dialog
and the next drag use it. A radius equal to the preference sets nothing.

A radius outside the preference's range of 0 to 1296 pt, or one that is
not a length, is refused with an error: the dialog stays open, nothing is
drawn and the preference keeps its value.
2026-11-16 06:50:23 -08:00
BFlat a6e94de555 Merge pull request #5484 from ruchirguitar/feat/4943-more-indian-languages
Complete #4943: Nepali, Konkani and Sindhi language options
2026-11-16 21:48:41 +07:00
BFlat ac0465a4e8 Merge pull request #8031 from ruchirguitar/feat/4028-recolor-lab-swatches
feat(ui): recolor lab entry and swatch libraries access (#4028)
2026-11-16 21:48:33 +07:00
dotCooCoo a1364474ca Place: the Place dialog's Link tooltip offers an EPS file as one locked object
With Link, File > Place now places an EPS file, a PostScript file and a
PostScript .ai as a linked placed document, but the Place dialog still
counted them as other files, so Link's tooltip did not say they become one
locked object, and the dialog test expected a PostScript .ai to be
embedded.

- `is_vectorcraft_file` counts an EPS, EPSF or PostScript file on disk, and
  a PostScript .ai, as a document, and leaves out a DCS file, which is
  placed as a linked image.
- Where the platform reads part of a file, it reads only the file's start
  and tells a DCS file from it with `place::head_is_dcs` (the check Links
  uses), binary EPS headers included.
- The dialog test now checks the .ai, .eps and .ps cases, the bounded read,
  DCS files plain and behind a binary header, and a file named .eps that
  isn't PostScript.
2026-11-16 06:46:09 -08:00
dotCooCoo a7afce1912 UI: list rows report a selected state and section headers report an expanded state
The rows of Select by Artboards and the Variables panel, and every
collapsible section header, reported their state through
`WidgetInfo::selected`. egui writes that value as the node's toggled
state for every role, so the accessibility tree showed these rows and
headers as toggled. AccessKit keeps a list item's selection in its
selected property and a disclosure control's state in its expanded
property.

- `widgets::list_item_info` gives a row the list item role and sets its
  selected property, and both lists use it.
- `section_toggle_name` sets the header's expanded property, as egui's
  own collapsing header does.
- Tests draw both lists and a section header and check the role and
  state of each node in the accessibility tree.
2026-11-16 06:45:20 -08:00
dotCooCoo 1f793e7185 Merge main into feat/graphic-styles-drag-to-new-duplicates 2026-11-16 06:42:13 -08:00
dotCooCoo e575a2dab5 Live Paint: a Bucket drag reaches an edge only where it crosses the edge itself
The drag check took any line intersection kurbo reported, and kurbo also reports
one a tiny step before the start or after the end of a cubic. On a long curve that
step reached past the 0.0001 pt join tolerance, so a drag 0.0002 pt short of an edge
stroked it. Only intersections inside the segment count now; the checks on the
edge's ends still cover touches there.
2026-11-16 06:38:42 -08:00
dotCooCoo eb72830339 Color Guide: Save Color Group to Swatches saves the selected cells as the group
With variation cells selected, the Save Color Group to Swatches button
now saves those cells as one swatch group, in grid order (row by row,
left to right, each cell once), named after the harmony rule, in one
undo step, each color in its own model. With no cell selected it saves
the harmony colors as before.

A cell selection now ends when the guide it was made in changes: the
base, the Color Guide Options, the variation mode, the harmony rule, the
library limit, or the colors the grid shows. Before, changing the
variation mode or the options kept the old cell positions selected, so
Save Colors as Swatches could save colors that were never picked.
2026-11-16 06:37:00 -08:00
dotCooCoo 6a776f5db6 Merge main into perf/glyphs-panel-cmap-once 2026-11-16 06:29:35 -08:00
dotCooCoo a1dac2c27f Image Trace: Flat Logo traces blurred black edges beside gray without gray slivers
With a gray between black and white, an edge pixel of black on white
took the black-and-white blend only when one of its eight neighbors lay
past the gray on each side and the flat black and white areas lay nearer
than the flat gray. On an edge blurred by a pixel or more neither holds,
so gray slivers lined black shapes: a black disc beside a gray square on
white traced up to 35 gray paths at blurs of 1 to 3 pixels.

The check now walks from the pixel along the line between the two outer
colors, up to 5 steps each way, each step to the neighbor that lies
farthest toward one of them while the pixels keep getting darker (or
lighter). The blend of the outer two lies as near as the farther of
their flat areas, or as the larger of the two step counts to a pixel of
each outer color when that is smaller. The first step is the old
neighbor check. The same disc and square now trace with one gray path
at blurs of 1 to 2 pixels. At 3 pixels, with the colors named, a gray of
128 is one path, a gray of 200 leaves 4 slivers with no area, and a gray
of 230 leaves 8 slivers of up to 21 pixels (14 gray paths before).

On edges blurred by a pixel or more, gray near black loses pixels. A
soft-edged gray band up to 4 pixels wide along black traces as black
and white at blurs of 1.5 and 2 pixels, and one up to 3 pixels wide at
blurs of 1 and 3 pixels. A soft-edged gray stroke 2 pixels from black
can lose some or all of its gray, and one 4 pixels away a few pixels. A
soft-edged gray stroke running out of black, blurred by 1 or 1.5
pixels, loses 3 or 4 of the 16 pixels nearest black. Sharp-edged bands
and strokes keep their gray.

Docs: docs/image-trace-adjustments.md, docs/target-app-parity.md.
2026-11-16 06:18:09 -08:00