diff --git a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino index f06b2a4..1f3ca1a 100644 --- a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino +++ b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino @@ -581,29 +581,28 @@ static void create_overland_overview_screen() lv_obj_set_style_arc_color(battery_soc_arc, lv_color_hex(0x84CAFF), LV_PART_INDICATOR); lv_obj_set_style_arc_width(battery_soc_arc, 14, LV_PART_INDICATOR); + battery_soc_label = lv_label_create(battery_card); + 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_font(battery_soc_label, &lv_font_montserrat_30, 0); + lv_obj_set_width(battery_soc_label, 190); + lv_obj_set_style_text_align(battery_soc_label, LV_TEXT_ALIGN_CENTER, 0); + lv_obj_align(battery_soc_label, LV_ALIGN_TOP_MID, 0, 82); + battery_voltage_label = lv_label_create(battery_card); lv_label_set_text(battery_voltage_label, "-- V"); - lv_obj_set_style_text_color(battery_voltage_label, lv_color_hex(0xFFFFFF), 0); - lv_obj_set_style_text_font(battery_voltage_label, &lv_font_montserrat_30, 0); + lv_obj_set_style_text_color(battery_voltage_label, lv_color_hex(0xB8C0C8), 0); lv_obj_set_width(battery_voltage_label, 190); lv_obj_set_style_text_align(battery_voltage_label, LV_TEXT_ALIGN_CENTER, 0); - lv_obj_align(battery_voltage_label, LV_ALIGN_TOP_MID, 0, 90); + lv_obj_align(battery_voltage_label, LV_ALIGN_TOP_MID, 0, 128); battery_current_label = lv_label_create(battery_card); lv_label_set_text(battery_current_label, ""); - lv_obj_set_style_text_color(battery_current_label, lv_color_hex(0xB8C0C8), 0); lv_obj_set_width(battery_current_label, 180); lv_obj_set_style_text_align(battery_current_label, LV_TEXT_ALIGN_CENTER, 0); - lv_obj_align(battery_current_label, LV_ALIGN_TOP_MID, 0, 132); + lv_obj_align(battery_current_label, LV_ALIGN_TOP_MID, 0, 154); lv_obj_add_flag(battery_current_label, LV_OBJ_FLAG_HIDDEN); - battery_soc_label = lv_label_create(battery_card); - lv_label_set_text(battery_soc_label, "--%"); - lv_obj_set_style_text_color(battery_soc_label, lv_color_hex(0xB8C0C8), 0); - lv_obj_set_width(battery_soc_label, 180); - lv_obj_set_style_text_align(battery_soc_label, LV_TEXT_ALIGN_CENTER, 0); - lv_obj_align(battery_soc_label, LV_ALIGN_TOP_MID, 0, 198); - inside_temp_label = lv_label_create(temp_card); lv_label_set_text(inside_temp_label, "Inside\n--"); lv_obj_set_style_text_color(inside_temp_label, lv_color_hex(0xFFFFFF), 0);