Status overlay on every screen: Wi-Fi chip top-right, blinking alert banner; Driveline values red on crossed thresholds, ring red on gear mismatch
Firmware / build (push) Successful in 7m12s
Firmware / build (push) Successful in 7m12s
This commit is contained in:
@@ -18,8 +18,9 @@ void header(lv_obj_t* scr, const char* title, lv_event_cb_t back_cb) {
|
||||
lv_obj_t* t = label(scr, title, &lv_font_montserrat_30, UI_COL_TEXT);
|
||||
lv_obj_align(t, LV_ALIGN_TOP_LEFT, 24, 18);
|
||||
|
||||
// -176: the StatusOverlay Wi-Fi chip owns the last 150 px of the top-right corner
|
||||
lv_obj_t* back = button(scr, LV_SYMBOL_LEFT " Driveline", 200, 56, BTN_SECONDARY, back_cb, NULL);
|
||||
lv_obj_align(back, LV_ALIGN_TOP_RIGHT, -16, 10);
|
||||
lv_obj_align(back, LV_ALIGN_TOP_RIGHT, -176, 10);
|
||||
}
|
||||
|
||||
lv_obj_t* label(lv_obj_t* parent, const char* text, const lv_font_t* font, lv_color_t color) {
|
||||
|
||||
Reference in New Issue
Block a user