dashboard: match overview main label to battery page

This commit is contained in:
2026-06-19 01:06:53 -06:00
parent 46d85e1042
commit 4d5b28e63e
2 changed files with 8 additions and 7 deletions
@@ -1,6 +1,6 @@
#pragma once #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. // Update these if your Cargo ESP AP credentials are different.
//static const char *CARGO_WIFI_SSID = "OverlandController"; //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_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_align(outside_status_temp_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_t *page_dots = lv_label_create(system_card); lv_obj_t *page_label = lv_label_create(system_card);
lv_label_set_text(page_dots, "< MAIN"); lv_label_set_text(page_label, "MAIN");
lv_obj_set_style_text_color(page_dots, lv_color_hex(0xB8C0C8), 0); lv_obj_set_style_text_color(page_label, lv_color_hex(0xB8C0C8), 0);
lv_obj_set_width(page_dots, 120); lv_obj_set_style_text_font(page_label, &lv_font_montserrat_26, 0);
lv_obj_set_style_text_align(page_dots, LV_TEXT_ALIGN_RIGHT, 0); lv_obj_set_width(page_label, 160);
lv_obj_align(page_dots, LV_ALIGN_RIGHT_MID, -10, 0); 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() void setup()