From f2b49f39d3d839b46c745b2026a655abcbd71c21 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 23 Jan 2022 18:26:20 +0800 Subject: [PATCH] add a white line under the status bar so black user backgrounds have a border --- services/status/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/status/src/main.rs b/services/status/src/main.rs index 081611092..039f3b237 100644 --- a/services/status/src/main.rs +++ b/services/status/src/main.rs @@ -256,6 +256,9 @@ fn xmain() -> ! { security_tv.invert = true; write!(&mut security_tv, "{}", t!("secnote.startup", xous::LANG)).unwrap(); gam.post_textview(&mut security_tv).unwrap(); + gam.draw_line(status_gid, Line::new_with_style( + Point::new(0, screensize.y), screensize, + DrawStyle::new(PixelColor::Light, PixelColor::Light, 1))).unwrap(); gam.redraw().unwrap(); // initial boot redraw let sec_notes = Arc::new(Mutex::new(HashMap::new())); @@ -426,6 +429,9 @@ fn xmain() -> ! { // only post the view if something has actually changed gam.post_textview(&mut security_tv).unwrap(); + gam.draw_line(status_gid, Line::new_with_style( + Point::new(0, screensize.y), screensize, + DrawStyle::new(PixelColor::Light, PixelColor::Light, 1))).unwrap(); } if (stats_phase % batt_interval) == (batt_interval - 1) { com.req_batt_stats()