diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/geom/stroke.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/typst/src/geom/stroke.rs b/crates/typst/src/geom/stroke.rs index e88d887d..5fb64c90 100644 --- a/crates/typst/src/geom/stroke.rs +++ b/crates/typst/src/geom/stroke.rs @@ -262,6 +262,10 @@ cast! { paint: Smart::Custom(color.into()), ..Default::default() }, + gradient: Gradient => Self { + paint: Smart::Custom(gradient.into()), + ..Default::default() + }, mut dict: Dict => { fn take<T: FromValue>(dict: &mut Dict, key: &str) -> StrResult<Smart<T>> { Ok(dict.take(key).ok().map(T::from_value) |
