From d1cd814ef8149cbac6e59c81e074aa59c930eed3 Mon Sep 17 00:00:00 2001 From: Birk Tjelmeland Date: Thu, 13 Apr 2023 16:05:56 +0200 Subject: Add support for more complex strokes (#505) --- src/doc.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/doc.rs') diff --git a/src/doc.rs b/src/doc.rs index 76d46f4a..4f0428fb 100644 --- a/src/doc.rs +++ b/src/doc.rs @@ -359,6 +359,7 @@ impl Frame { Geometry::Line(Point::with_x(self.size.x)).stroked(Stroke { paint: Color::RED.into(), thickness: Abs::pt(1.0), + ..Stroke::default() }), Span::detached(), ), @@ -386,6 +387,7 @@ impl Frame { Geometry::Line(Point::with_x(self.size.x)).stroked(Stroke { paint: Color::GREEN.into(), thickness: Abs::pt(1.0), + ..Stroke::default() }), Span::detached(), ), -- cgit v1.2.3