dashboard: match overview main label to battery page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
static const char *DASHBOARD_VERSION = "0.1.112-main-label-match";
|
||||
static const char *DASHBOARD_VERSION = "0.1.113-overview-main-label-style";
|
||||
|
||||
// Update these if your Cargo ESP AP credentials are different.
|
||||
//static const char *CARGO_WIFI_SSID = "OverlandController";
|
||||
|
||||
@@ -1988,12 +1988,13 @@ cargo_status_dot = lv_obj_create(system_card);
|
||||
lv_obj_set_style_text_align(outside_status_temp_label, LV_TEXT_ALIGN_CENTER, 0);
|
||||
lv_obj_align(outside_status_temp_label, LV_ALIGN_CENTER, 0, 0);
|
||||
|
||||
lv_obj_t *page_dots = lv_label_create(system_card);
|
||||
lv_label_set_text(page_dots, "< MAIN");
|
||||
lv_obj_set_style_text_color(page_dots, lv_color_hex(0xB8C0C8), 0);
|
||||
lv_obj_set_width(page_dots, 120);
|
||||
lv_obj_set_style_text_align(page_dots, LV_TEXT_ALIGN_RIGHT, 0);
|
||||
lv_obj_align(page_dots, LV_ALIGN_RIGHT_MID, -10, 0);
|
||||
lv_obj_t *page_label = lv_label_create(system_card);
|
||||
lv_label_set_text(page_label, "MAIN");
|
||||
lv_obj_set_style_text_color(page_label, lv_color_hex(0xB8C0C8), 0);
|
||||
lv_obj_set_style_text_font(page_label, &lv_font_montserrat_26, 0);
|
||||
lv_obj_set_width(page_label, 160);
|
||||
lv_obj_set_style_text_align(page_label, LV_TEXT_ALIGN_RIGHT, 0);
|
||||
lv_obj_align(page_label, LV_ALIGN_RIGHT_MID, -10, 0);
|
||||
}
|
||||
|
||||
void setup()
|
||||
|
||||
Reference in New Issue
Block a user