dashboard: enlarge boot screen and show version
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
static const char *DASHBOARD_VERSION = "0.1.30-relay-state-colors";
|
||||
static const char *DASHBOARD_VERSION = "0.1.31-boot-version";
|
||||
|
||||
// Update these if your Cargo ESP AP credentials are different.
|
||||
static const char *CARGO_WIFI_SSID = "OverlandController";
|
||||
|
||||
@@ -712,29 +712,35 @@ static void show_boot_screen()
|
||||
lv_obj_t *title = lv_label_create(screen);
|
||||
lv_label_set_text(title, "Overland Controller");
|
||||
lv_obj_set_style_text_color(title, lv_color_hex(0xFFFFFF), 0);
|
||||
lv_obj_set_style_text_font(title, &lv_font_montserrat_40, 0);
|
||||
lv_obj_set_style_text_font(title, &lv_font_montserrat_48, 0);
|
||||
lv_obj_align(title, LV_ALIGN_CENTER, 0, -70);
|
||||
|
||||
lv_obj_t *subtitle = lv_label_create(screen);
|
||||
lv_label_set_text(subtitle, "ESP32-S3 Dashboard");
|
||||
lv_obj_set_style_text_color(subtitle, lv_color_hex(0xB8C0C8), 0);
|
||||
lv_obj_set_width(subtitle, 700);
|
||||
lv_obj_set_style_text_font(subtitle, &lv_font_montserrat_30, 0);
|
||||
lv_obj_set_width(subtitle, 800);
|
||||
lv_obj_set_style_text_align(subtitle, LV_TEXT_ALIGN_CENTER, 0);
|
||||
lv_obj_align(subtitle, LV_ALIGN_CENTER, 0, -25);
|
||||
lv_obj_align(subtitle, LV_ALIGN_CENTER, 0, -18);
|
||||
|
||||
lv_obj_t *status = lv_label_create(screen);
|
||||
lv_label_set_text(status, "Connecting to Cargo ESP WiFi...");
|
||||
lv_obj_set_style_text_color(status, lv_color_hex(0x7D8996), 0);
|
||||
lv_obj_set_width(status, 700);
|
||||
String boot_status = "Connecting to Cargo ESP WiFi...\n";
|
||||
boot_status += DASHBOARD_VERSION;
|
||||
|
||||
lv_label_set_text(status, boot_status.c_str());
|
||||
lv_obj_set_style_text_color(status, lv_color_hex(0xDDE3EA), 0);
|
||||
lv_obj_set_style_text_font(status, &lv_font_montserrat_30, 0);
|
||||
lv_obj_set_width(status, 850);
|
||||
lv_obj_set_style_text_align(status, LV_TEXT_ALIGN_CENTER, 0);
|
||||
lv_obj_align(status, LV_ALIGN_CENTER, 0, 35);
|
||||
lv_obj_align(status, LV_ALIGN_CENTER, 0, 48);
|
||||
|
||||
lv_obj_t *api = lv_label_create(screen);
|
||||
lv_label_set_text(api, "/api/v1");
|
||||
lv_obj_set_style_text_color(api, lv_color_hex(0x3A4652), 0);
|
||||
lv_obj_set_style_text_color(api, lv_color_hex(0x7D8996), 0);
|
||||
lv_obj_set_style_text_font(api, &lv_font_montserrat_26, 0);
|
||||
lv_obj_set_width(api, 700);
|
||||
lv_obj_set_style_text_align(api, LV_TEXT_ALIGN_CENTER, 0);
|
||||
lv_obj_align(api, LV_ALIGN_CENTER, 0, 80);
|
||||
lv_obj_align(api, LV_ALIGN_CENTER, 0, 118);
|
||||
}
|
||||
|
||||
static void create_overland_overview_screen()
|
||||
|
||||
Reference in New Issue
Block a user