mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add a white line under the status bar so black user backgrounds have a border
This commit is contained in:
parent
0a885671ba
commit
f2b49f39d3
1 changed files with 6 additions and 0 deletions
|
|
@ -256,6 +256,9 @@ fn xmain() -> ! {
|
||||||
security_tv.invert = true;
|
security_tv.invert = true;
|
||||||
write!(&mut security_tv, "{}", t!("secnote.startup", xous::LANG)).unwrap();
|
write!(&mut security_tv, "{}", t!("secnote.startup", xous::LANG)).unwrap();
|
||||||
gam.post_textview(&mut security_tv).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
|
gam.redraw().unwrap(); // initial boot redraw
|
||||||
|
|
||||||
let sec_notes = Arc::new(Mutex::new(HashMap::new()));
|
let sec_notes = Arc::new(Mutex::new(HashMap::new()));
|
||||||
|
|
@ -426,6 +429,9 @@ fn xmain() -> ! {
|
||||||
|
|
||||||
// only post the view if something has actually changed
|
// only post the view if something has actually changed
|
||||||
gam.post_textview(&mut security_tv).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();
|
||||||
}
|
}
|
||||||
if (stats_phase % batt_interval) == (batt_interval - 1) {
|
if (stats_phase % batt_interval) == (batt_interval - 1) {
|
||||||
com.req_batt_stats()
|
com.req_batt_stats()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue