mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 18:10:01 -06:00
Recolor Artwork: a slider edit changes the color mode of its own row only
The color sliders now mark the row they edit with `model: "new"` instead of a dialog-wide flag, and `recolor.apply` reads a row's own `model` before the command's. Rows the sliders did not edit keep each color's model, so with RGB art and a CMYK color group, a slider edit of one row no longer turns the other rows' art CMYK. Another edit of the row's new color, Reset and rows reduced again remove the mark, and `recolor.randomize` moves it with its new color.
This commit is contained in:
@@ -253,12 +253,13 @@ and spot colours exist; the dialog then stays open.
|
||||
|
||||
Recolor Artwork: `ui.recolorDialog {colors?, library?, group?}` opens the `recolor` dialog on the selected art
|
||||
(`colors`: a count for an n-colour job, or colours to assign as the new colours; `library`: Limit to Library, a library
|
||||
or `"document"`, `""` for the first library; `group`: a colour group, Edit or Apply Color Group). Fields: `rows` (`[{from: [keys], to: key, exclude?, tint?}]`
|
||||
or `"document"`, `""` for the first library; `group`: a colour group, Edit or Apply Color Group). Fields: `rows` (`[{from: [keys], to: key, exclude?, tint?, model?}]`
|
||||
as `recolor.reduce` returns them), `colors` (null for Auto), `method`, `preserveWhite`, `preserveBlack`,
|
||||
`preserveGrays`, `limitTo`, `groupName`, `tab` (`assign` or `edit`), `rule` (harmony id), `linked`, `preview`,
|
||||
`sliderMode` (the mode of the color sliders under the rows: `hsb`, `rgb`, `cmyk`, `lab`, or `tint` for a row whose new
|
||||
color is a spot color of the library; unset, they show the new color's own model). The sliders edit the first selected
|
||||
row's new color; once they have, the preview and confirm send `recolor.apply` with `model: "new"`. Setting
|
||||
row's new color and give that row `model: "new"`, so the preview and confirm give only that row's art the color in
|
||||
the sliders' mode; another edit of the row's new color, Reset and rows reduced again remove it. Setting
|
||||
`colors`, a preserve flag or `limitTo` reduces the rows again (also on `ui.dialog.confirm`). The dialog previews
|
||||
`recolor.apply` on the canvas; confirm keeps it as one undo step (with a group, the group is rewritten in the same
|
||||
step; with no art selected only the group changes). In the Swatches panel, double-clicking a colour group's folder,
|
||||
|
||||
Reference in New Issue
Block a user