Files
vectorcraft/crates
dotCooCoo c2485d29ef Swatches: a Swatch Strip panel of one-click color chips
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
2026-12-05 07:05:45 -08:00
..
2026-12-04 20:36:17 -08:00