mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 06:39:10 +00:00
The dialog lists the document's color groups on its right, or under the tabs in a narrow window, and the Show Color Groups button beside the tabs shows or hides the list. A click on a group makes it the group being edited: with art, the art is reduced again to a row per color of the group, which become the rows' new colors; without art, the rows are the group's colors. Save Changes rewrites the selected group with the colors OK would give it and the name in the name field, New Color Group saves the rows' new colors as a new group, and Delete removes the selected group. Each is its own undo step, and the Swatches panel shows it. When the art has colors of the group, Save Changes keeps the group's swatches in order: a swatch whose color a row lists takes that row's new color, and the others keep theirs. After a save with art the rows' new colors take the Global Adjust, which goes back to 0%, and when the save recolored linked art the rows are read from the art again. The dialog fields are group, groupStorage and groupAction (save, new or delete). A name no group has, a groupAction of another value, and save or delete with no group selected are refused. swatch.editGroup given a group's own colors in order and no new name records no undo step.