dashboard: reapply larger lvgl fonts
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
static const char *DASHBOARD_VERSION = "0.1.9-large-display-layout";
|
static const char *DASHBOARD_VERSION = "0.1.10-large-fonts-enabled";
|
||||||
|
|
||||||
// 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";
|
||||||
|
|||||||
@@ -605,7 +605,7 @@ static void show_boot_screen()
|
|||||||
lv_obj_t *title = lv_label_create(screen);
|
lv_obj_t *title = lv_label_create(screen);
|
||||||
lv_label_set_text(title, "Overland Controller");
|
lv_label_set_text(title, "Overland Controller");
|
||||||
lv_obj_set_style_text_color(title, lv_color_hex(0xFFFFFF), 0);
|
lv_obj_set_style_text_color(title, lv_color_hex(0xFFFFFF), 0);
|
||||||
lv_obj_set_style_text_font(title, &lv_font_montserrat_30, 0);
|
lv_obj_set_style_text_font(title, &lv_font_montserrat_40, 0);
|
||||||
lv_obj_align(title, LV_ALIGN_CENTER, 0, -70);
|
lv_obj_align(title, LV_ALIGN_CENTER, 0, -70);
|
||||||
|
|
||||||
lv_obj_t *subtitle = lv_label_create(screen);
|
lv_obj_t *subtitle = lv_label_create(screen);
|
||||||
@@ -675,7 +675,7 @@ static void create_overland_overview_screen()
|
|||||||
battery_soc_label = lv_label_create(battery_card);
|
battery_soc_label = lv_label_create(battery_card);
|
||||||
lv_label_set_text(battery_soc_label, "--%");
|
lv_label_set_text(battery_soc_label, "--%");
|
||||||
lv_obj_set_style_text_color(battery_soc_label, lv_color_hex(0xFFFFFF), 0);
|
lv_obj_set_style_text_color(battery_soc_label, lv_color_hex(0xFFFFFF), 0);
|
||||||
lv_obj_set_style_text_font(battery_soc_label, &lv_font_montserrat_30, 0);
|
lv_obj_set_style_text_font(battery_soc_label, &lv_font_montserrat_48, 0);
|
||||||
lv_obj_set_style_text_font(
|
lv_obj_set_style_text_font(
|
||||||
battery_soc_label,
|
battery_soc_label,
|
||||||
&lv_font_montserrat_30,
|
&lv_font_montserrat_30,
|
||||||
@@ -718,7 +718,7 @@ static void create_overland_overview_screen()
|
|||||||
);
|
);
|
||||||
|
|
||||||
lv_obj_set_style_text_color(inside_temp_label, lv_color_hex(0xFFFFFF), 0);
|
lv_obj_set_style_text_color(inside_temp_label, lv_color_hex(0xFFFFFF), 0);
|
||||||
lv_obj_set_style_text_font(inside_temp_label, &lv_font_montserrat_30, 0);
|
lv_obj_set_style_text_font(inside_temp_label, &lv_font_montserrat_40, 0);
|
||||||
lv_obj_set_width(inside_temp_label, 260);
|
lv_obj_set_width(inside_temp_label, 260);
|
||||||
lv_obj_align(inside_temp_label, LV_ALIGN_TOP_LEFT, 0, 45);
|
lv_obj_align(inside_temp_label, LV_ALIGN_TOP_LEFT, 0, 45);
|
||||||
|
|
||||||
@@ -731,7 +731,7 @@ static void create_overland_overview_screen()
|
|||||||
);
|
);
|
||||||
|
|
||||||
lv_obj_set_style_text_color(outside_temp_label, lv_color_hex(0xFFFFFF), 0);
|
lv_obj_set_style_text_color(outside_temp_label, lv_color_hex(0xFFFFFF), 0);
|
||||||
lv_obj_set_style_text_font(outside_temp_label, &lv_font_montserrat_30, 0);
|
lv_obj_set_style_text_font(outside_temp_label, &lv_font_montserrat_40, 0);
|
||||||
lv_obj_set_width(outside_temp_label, 260);
|
lv_obj_set_width(outside_temp_label, 260);
|
||||||
lv_obj_align(outside_temp_label, LV_ALIGN_TOP_LEFT, 0, 145);
|
lv_obj_align(outside_temp_label, LV_ALIGN_TOP_LEFT, 0, 145);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user