mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 02:44:24 +01:00
The Color Wheel panel menu gets Show Document Colors. It adds a row
under the wheel or the box with the colors of the selection, headed
Selection Colors, or with nothing selected the colors of the art Select
All takes, headed Document Colors, most used first and as many as fit
in one row. A color's tooltip gives its hex value and how many times
the art uses it. A click applies it to the active proxy or to the
selected gradient stop, keeping its color model and its link to a
global swatch, or to the selected freeform point, which takes the
color alone. Alt+click applies it to the other proxy.
The row keeps its colors during a drag. In art with more than 5,000
color uses, it reads them again at most once every half second after
an edit; a change of document or selection reads them at once.
color.used {selection?, limit?} lists the colors recolor.colors lists,
each with the color in its own model and the tint of its swatch to
three decimals. The swatch and tint come from the color's first linked
use in paint order, a plain use before a gradient stop that mixes a
spot ink with process inks; a color that only such stops link has no
swatch there. ui.colorWheel {documentColors} sets the option, which is
kept with the preferences.
Docs: docs/control-protocol.md, docs/mcp.md, docs/target-app-parity.md.