summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
authorBirk Tjelmeland <git@birktj.no>2023-04-13 16:05:56 +0200
committerGitHub <noreply@github.com>2023-04-13 16:05:56 +0200
commitd1cd814ef8149cbac6e59c81e074aa59c930eed3 (patch)
tree02b9a8afed4d121b34d89669452f91cda19df8e2 /src/doc.rs
parent46ce9c94e3f615751989d3cba5aa1599e0ba5913 (diff)
Add support for more complex strokes (#505)
Diffstat (limited to 'src/doc.rs')
-rw-r--r--src/doc.rs2
1 files changed, 2 insertions, 0 deletions
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(),
),