From 2813ae0effbd10c9ffb1e63bd0a19134927bd5f1 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Fri, 14 Jan 2022 00:39:23 +0100 Subject: [PATCH] clock: Adjust to new font advance --- src/widgets/clock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/clock.rs b/src/widgets/clock.rs index 99bff56..7704b6a 100644 --- a/src/widgets/clock.rs +++ b/src/widgets/clock.rs @@ -21,7 +21,7 @@ impl<'a> Clock<'a> { clock_cache.add_str_to_cache("0123456789:"); let digit = clock_cache.auto_widest("123456789")?; - let colon = (clock_cache.auto_widest(":")? as f32 * 1.25) as u32; + let colon = clock_cache.auto_widest(":")?; Ok(Box::new(Clock { cur_time: time,