mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
c2485d29ef
Window › Swatch Strip shows a None chip and then the document's color
swatches as a row of chips that wraps to the panel's room and scrolls
when the chips do not fit. Docked on the window's bottom edge the chips
run across in one line; in a dock column or a narrow floating window
they run down it. Gradient and pattern swatches are left out.
A click on a chip sets the fill (paint.setFill) and a right-click or an
Alt-click sets the stroke (paint.setStroke). Both pass focus: false, so
the active Fill or Stroke proxy stays as it was.
- window.panel {panel: "swatchStrip"} shows the panel, and
window.panel.dock with placement {"Edge": "Bottom"} beside the canvas
docks it along the bottom edge.
- The Swatches panel's shown() is shared so the strip draws a spot
color the way its art shows it.
Docs: docs/control-protocol.md, ROADMAP.
Fixes #10951