Print color: the sample's Dusk Gradient stops name their swatches

This commit is contained in:
aiongg committed 2026-10-20 13:47:50 +00:00
1 parent 905e33d546
commit ab568de0de
1 file changed
+4 -1
+4 -1
View File
@@ -127,7 +127,10 @@ fn build() -> designcraft_doc::Result<Document> {
value: SwatchValue::Gradient {
gradient: Gradient {
kind: GradientKind::Linear,
stops: vec![GradientStop::new(0.0, Color::cmyk(0.62, 0.95, 0.30, 0.25)), GradientStop::new(1.0, Color::cmyk(0.0, 0.62, 0.78, 0.0))],
stops: vec![
GradientStop { swatch: Some("Ink Plum".into()), ..GradientStop::new(0.0, Color::cmyk(0.62, 0.95, 0.30, 0.25)) },
GradientStop { swatch: Some("Sunset".into()), ..GradientStop::new(1.0, Color::cmyk(0.0, 0.62, 0.78, 0.0)) },
],
},
},
locked: false,