Scale the clock hands to the same size as the face

This commit is contained in:
Marli Frost 2020-04-01 23:02:33 +01:00
parent 3bf938f65f
commit 08da96c1c6
No known key found for this signature in database
GPG Key ID: CB0BEA7CF9BD1245

View File

@ -133,7 +133,7 @@ impl canvas::Drawable for LocalTime {
frame.stroke(
&hour_and_minute_hands,
canvas::Stroke {
width: 6.0,
width: radius / 100. * 3.,
color: Color::WHITE,
line_cap: canvas::LineCap::Round,
..canvas::Stroke::default()
@ -148,7 +148,7 @@ impl canvas::Drawable for LocalTime {
frame.stroke(
&second_hand,
canvas::Stroke {
width: 3.0,
width: radius / 100.,
color: Color::WHITE,
line_cap: canvas::LineCap::Round,
..canvas::Stroke::default()