mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 08:53:33 +00:00
Recolor Artwork: Save Changes keeps colors added and removed on the Edit tab
Save Changes now gives the group the same colors OK would: a color removed with the Remove Color tool removes its swatch, and a color added with the Add Color tool joins the group after its other colors, also when the art holds colors of the group. `swatch.editGroup` takes `null` in `colors` to remove the swatch at that place. After the save, the rows follow the saved group, so a later edit or OK does not remove or add a color a second time.
This commit is contained in:
+4
-3
@@ -4685,8 +4685,8 @@ linked moves and the Color Theme Picker leave its new color as it is, and Save A
|
||||
from colors alone leave its new color out. With `limitTo`, a row's `tint` (a percentage, default 100) gives the art
|
||||
linked to the global or spot swatch its new color is that share of its tint; `tint` must be a number. `recolor.randomize`
|
||||
moves a row's `tint` with its new color and removes it from a color it changes, and moves a row's `model` with its new color. `swatch.editGroup {group, colors, rename?}` rewrites a colour group in one undo
|
||||
step (art linked to its global swatches follows); given the group's own colors in order and no new name, it records no
|
||||
undo step. And `recolor.apply` with `group` recolours the art and rewrites the
|
||||
step (art linked to its global swatches follows); a `null` in `colors` removes the group's swatch at that place, and
|
||||
given the group's own colors in order and no new name, it records no undo step. And `recolor.apply` with `group` recolours the art and rewrites the
|
||||
group together. A `null` in `groupColors` removes the group's swatch at that place, and the swatches after it keep
|
||||
their colors and names; art linked to a removed global swatch keeps its color and is no longer linked to it. Art linked to one of the group's global swatches stays linked when the swatch is rewritten with its
|
||||
row's new color (the default without `groupColors` when the rows follow the group's order), so a later `swatch.edit` still
|
||||
@@ -4767,7 +4767,8 @@ dialog runs it (OK with it set in the same request runs it first):
|
||||
and `delete` (Delete) runs `swatch.delete` on the selected group. Each is its own undo step, and the art keeps its
|
||||
preview. When the art has colors of the group, `save` keeps the group's swatches in order: a swatch whose color a row
|
||||
lists takes that row's new color (its own color when the row is excluded), so art linked to the swatch takes the color
|
||||
its row shows, and every other swatch keeps its color. After a `save` with art, the rows' new colors take the Global
|
||||
its row shows, and every other swatch keeps its color. A row whose color was removed (`to: null`) and is not excluded
|
||||
removes its swatch, and the colors added on the Edit tab follow the group's other colors, as at OK. After a `save` with art, the rows' new colors take the Global
|
||||
Adjust and it goes back to 0%; when the save recolored linked art, the rows are read from the art again and a row with a
|
||||
color the save gave the art is excluded, also when other art has that color, since a row recolors every use of its
|
||||
colors alike. Until the rows or the Global Adjust change, OK changes the saved group only by the name
|
||||
|
||||
Reference in New Issue
Block a user