summaryrefslogtreecommitdiffstats
path: root/examples/clock
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-12 09:00:44 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-12 09:00:44 +0100
commit96b36d0f9e4beba2ac9cbe9c873adf1b89d31f99 (patch)
tree282c5eed4e79a3a26b4744ac8fc3d99b53cf62e3 /examples/clock
parent578ea4abb8a2dd0d53d7087322796bf9ad541b56 (diff)
downloadiced-96b36d0f9e4beba2ac9cbe9c873adf1b89d31f99.tar.gz
iced-96b36d0f9e4beba2ac9cbe9c873adf1b89d31f99.tar.bz2
iced-96b36d0f9e4beba2ac9cbe9c873adf1b89d31f99.zip
Increase line width in `clock` example
Diffstat (limited to 'examples/clock')
-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 1b8d1ee6..e70ce91a 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -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()