DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Print color: the sample's Dusk Gradient stops name their swatches
aionggab568de0de61
diff --git a/crates/engine/src/sample.rs b/crates/engine/src/sample.rsindex 281891f0c..c2ea4da85 100644--- a/crates/engine/src/sample.rs+++ b/crates/engine/src/sample.rs@@ -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,