mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 19:36:42 +00:00
Two buttons beside the Color Theme Picker go back and forward one color edit made in the open dialog: the rows, Colors, Method, the Preserve options, Limit to Library, the harmony rule, Global Adjust, the Color Theme Picker's picks and the Prominent Colors weights. The art previews each step. The dialog's history is separate from the document's: OK still records one undo step and Cancel discards the edits with their history. Each opening starts with nothing to undo, as the help page describes (https://helpx.adobe.com/illustrator/desktop/manage-colors/modify-colors/recolor-options-overview.html). VectorCraft's own rules: a change is one step once the pointer is released, so a drag is one step; Reset is a step of its own; a new edit after Undo Changes leaves nothing to redo; a button with no step to go to is disabled; the dialog keeps at most 64 steps and 4 MiB of them. ui.recolorUndo and ui.recolorRedo run the buttons and return {changed, canUndo, canRedo}.