summaryrefslogtreecommitdiffstats
path: root/examples/clock/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/clock/src/main.rs')
-rw-r--r--examples/clock/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index 51f25a3f..06ed44f0 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -1,6 +1,6 @@
use iced::executor;
use iced::widget::canvas::{
- Cache, Cursor, Geometry, LineCap, Path, Stroke, StrokeStyle,
+ Cache, Cursor, Geometry, LineCap, Path, Stroke, Style,
};
use iced::widget::{canvas, container};
use iced::{
@@ -111,7 +111,7 @@ impl<Message> canvas::Program<Message> for Clock {
let thin_stroke = || -> Stroke {
Stroke {
width,
- style: StrokeStyle::Solid(Color::WHITE),
+ style: Style::Solid(Color::WHITE),
line_cap: LineCap::Round,
..Stroke::default()
}
@@ -120,7 +120,7 @@ impl<Message> canvas::Program<Message> for Clock {
let wide_stroke = || -> Stroke {
Stroke {
width: width * 3.0,
- style: StrokeStyle::Solid(Color::WHITE),
+ style: Style::Solid(Color::WHITE),
line_cap: LineCap::Round,
..Stroke::default()
}