From cfcea2e094bfc92a61938fea51e5079fd17eaa13 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 4 Apr 2022 04:54:37 +0800 Subject: [PATCH] shift the status bar a bit more as uptime goes up, the width gets larger... --- services/status/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/status/src/main.rs b/services/status/src/main.rs index 606c9f81f..da10b378e 100644 --- a/services/status/src/main.rs +++ b/services/status/src/main.rs @@ -166,8 +166,8 @@ fn xmain() -> ! { // layout: 336 px wide // 0 150 150 200 // Feb 05 15:00 (00:06:23) xxxx 3.72V/-100mA/99% - const CPU_BAR_WIDTH: i16 = 48; - const CPU_BAR_OFFSET: i16 = 4; + const CPU_BAR_WIDTH: i16 = 46; + const CPU_BAR_OFFSET: i16 = 8; let time_rect = Rectangle::new_with_style( Point::new(0, 0), Point::new(screensize.x / 2 - CPU_BAR_WIDTH / 2 - 1 + CPU_BAR_OFFSET, screensize.y / 2 - 1),