From ab568de0de619d51d5e82430e1fee192e9fa28fb Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 20 Oct 2026 13:47:50 +0000 Subject: [PATCH] Print color: the sample's Dusk Gradient stops name their swatches --- crates/engine/src/sample.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/sample.rs b/crates/engine/src/sample.rs index 281891f0c..c2ea4da85 100644 --- a/crates/engine/src/sample.rs +++ b/crates/engine/src/sample.rs @@ -127,7 +127,10 @@ fn build() -> designcraft_doc::Result { 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,