Increase line width in `clock` example
This commit is contained in:
parent
578ea4abb8
commit
96b36d0f9e
|
@ -54,7 +54,7 @@ impl Application for Clock {
|
|||
}
|
||||
|
||||
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> {
|
||||
|
@ -138,7 +138,7 @@ impl canvas::layer::Drawable for LocalTime {
|
|||
frame.stroke(
|
||||
&path,
|
||||
canvas::Stroke {
|
||||
width: 4.0,
|
||||
width: 6.0,
|
||||
color: Color::WHITE,
|
||||
line_cap: canvas::LineCap::Round,
|
||||
..canvas::Stroke::default()
|
||||
|
@ -153,7 +153,7 @@ impl canvas::layer::Drawable for LocalTime {
|
|||
frame.stroke(
|
||||
&path,
|
||||
canvas::Stroke {
|
||||
width: 2.0,
|
||||
width: 3.0,
|
||||
color: Color::WHITE,
|
||||
line_cap: canvas::LineCap::Round,
|
||||
..canvas::Stroke::default()
|
||||
|
|
Loading…
Reference in New Issue