Opening Recolor Artwork on a color group while the open dialog previewed
a rename of that group failed with "no colour group", because the name
was checked against the previewed document before Cancel restored it.
The name is now checked against the document without the replaced
dialog's preview. An unknown group still fails and leaves the open
dialog as it is.
Opening Recolor Artwork on a color group over its own preview of that
group read the group's colors before the preview was rolled back, so the
new dialog started on the previewed colors and OK could apply them again.
The replaced dialog now ends first, after the parameters are checked, and
the group is read from the restored document.
ui.recolorDialog with preset: true and a group opened the preset dialog
and dropped the group, so OK recolored the art without rewriting the
group. That call is now an error. The params text and
docs/control-protocol.md say so.
The 1 Color Job test now requires a strictly higher tint on the darker of
two grays for a linked ink, and different colors for a process swatch, so
a flat tint fails it. docs/ui-parity.md gets a Recolor with Preset item
and the M3 row in docs/roadmap.md names the preset flow.
Edit > Edit Colors > Recolor with Preset (1, 2 and 3 Color Job, Color
Library) now opens a Recolor with Preset dialog with a Limit to Library
menu (None, Document Swatches or a library) before Recolor Artwork
opens; OK opens Recolor Artwork with the preset's colors and that
library, and Cancel opens nothing. The menu items run
ui.recolorDialog {preset: true}.
A 1 Color Job limited to the document's swatches, with a spot or global
ink picked for its row, gives gray art tints of that ink linked to its
swatch, so editing the swatch recolors the art.
Opening either dialog over another dialog now ends that dialog as
Cancel does, so a Recolor Artwork preview is rolled back.
A color a library pattern's art brings now skips the library's numbered
names while the pattern is imported, instead of being renamed after the
import. The rename also rewrote every other paint in the document linked
to the name the import first gave, such as art still linked to a deleted
"Ink 2", so adding the pattern changed that art. Now the names are held
with placeholder swatches during the import and removed afterwards, and
links that were already in the document stay as they were.
A pattern whose art brings both "Ink" and the library's "Ink 2" keeps the
library's "Ink 2" under its own name when the document gives "Ink"
another color, and the library's "Ink" takes the next free name. A library
pattern with a numbered name, such as "Tiles 2", keeps that name when the
document does not use it.
A global or spot color that a library pattern's art brings under a
numbered name no longer takes a name the library gives another swatch.
Before, adding a pattern whose art uses "Ink" to a document with another
"Ink" brought the color as "Ink 2" even when the library has its own
"Ink 2"; adding that library swatch next then came in as "Ink 2 2". The
brought color now takes the next free name the library does not use
("Ink 3"), and every paint linked to it follows the new name, so adding
the library's "Ink 2" next adds it under its own name and adding both
again adds nothing.
A color the pattern's art brings or takes is the color a library tint
or gradient links to only when it has the library color's paint and its
process, global or spot kind, as for the other lookups in the same add.
The test a_numbered_copy_named_like_another_library_color_is_found now
makes the blue "Ink 2" itself, as an earlier version's pattern add left
it, since a pattern add no longer gives that name.