Increase line width in `clock` example

This commit is contained in:
Héctor Ramón Jiménez 2020-02-12 09:00:44 +01:00
parent 578ea4abb8
commit 96b36d0f9e
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ impl Application for Clock {
} }
fn subscription(&self) -> Subscription<Message> { fn subscription(&self) -> Subscription<Message> {
time::every(std::time::Duration::from_millis(500)).map(Message::Tick) time::every(std::time::Duration::from_millis(1000)).map(Message::Tick)
} }
fn view(&mut self) -> Element<Message> { fn view(&mut self) -> Element<Message> {
@ -138,7 +138,7 @@ impl canvas::layer::Drawable for LocalTime {
frame.stroke( frame.stroke(
&path, &path,
canvas::Stroke { canvas::Stroke {
width: 4.0, width: 6.0,
color: Color::WHITE, color: Color::WHITE,
line_cap: canvas::LineCap::Round, line_cap: canvas::LineCap::Round,
..canvas::Stroke::default() ..canvas::Stroke::default()
@ -153,7 +153,7 @@ impl canvas::layer::Drawable for LocalTime {
frame.stroke( frame.stroke(
&path, &path,
canvas::Stroke { canvas::Stroke {
width: 2.0, width: 3.0,
color: Color::WHITE, color: Color::WHITE,
line_cap: canvas::LineCap::Round, line_cap: canvas::LineCap::Round,
..canvas::Stroke::default() ..canvas::Stroke::default()