mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
Since #2664, swatch.new separates an RGB color into CMYK through the color settings in a CMYK document unless keepModel is given. The Color Guide, Color Themes and Recolor Artwork send keepModel when they save colors they show, but the Color panel menu's Create New Swatch, the Swatches panel and the Gradient panel did not. An RGB object's color saved from them became a CMYK swatch, and a gradient's RGB stops became CMYK stops. These now send keepModel: Create New Swatch, an Alt-click on New Swatch, the New Swatch dialog for a gradient, a Fill or Stroke proxy or the Gradient panel's thumbnail dropped on the Swatches panel or Alt-dropped on a swatch of its kind, and the Gradient panel's Add to Swatches and Save to Swatches. A new swatch_paint_params returns paint_params with keepModel: true added for an unlinked color or a gradient. swatch.new without keepModel still converts RGB input. Docs: docs/target-app-parity.md.