dashboard: maximize coolant meter

This commit is contained in:
2026-06-11 23:22:07 -06:00
parent b9c4bdeccd
commit 6360b0bb70
2 changed files with 5 additions and 5 deletions
@@ -1,6 +1,6 @@
#pragma once
static const char *DASHBOARD_VERSION = "0.1.59-position-vehicle-icons";
static const char *DASHBOARD_VERSION = "0.1.60-max-coolant-meter";
// Update these if your Cargo ESP AP credentials are different.
static const char *CARGO_WIFI_SSID = "OverlandController";
@@ -1253,12 +1253,12 @@ static void create_overland_overview_screen()
lv_obj_t *coolant_icon = lv_img_create(vehicle_card);
lv_img_set_src(coolant_icon, &thermometer_water);
lv_img_set_zoom(coolant_icon, 100);
lv_obj_align(coolant_icon, LV_ALIGN_TOP_LEFT, 16, 10);
lv_obj_align(coolant_icon, LV_ALIGN_TOP_LEFT, 24, 20);
#if LV_USE_METER
vehicle_coolant_meter = lv_meter_create(vehicle_card);
lv_obj_set_size(vehicle_coolant_meter, 220, 220);
lv_obj_align(vehicle_coolant_meter, LV_ALIGN_TOP_MID, 0, 24);
lv_obj_set_size(vehicle_coolant_meter, 252, 252);
lv_obj_align(vehicle_coolant_meter, LV_ALIGN_TOP_MID, 0, 6);
lv_obj_set_style_bg_opa(vehicle_coolant_meter, LV_OPA_TRANSP, 0);
lv_obj_set_style_border_width(vehicle_coolant_meter, 0, 0);
lv_obj_clear_flag(vehicle_coolant_meter, LV_OBJ_FLAG_SCROLLABLE);
@@ -1286,7 +1286,7 @@ static void create_overland_overview_screen()
lv_obj_set_style_text_font(vehicle_coolant_value_label, &lv_font_montserrat_40, 0);
lv_obj_set_width(vehicle_coolant_value_label, 120);
lv_obj_set_style_text_align(vehicle_coolant_value_label, LV_TEXT_ALIGN_CENTER, 0);
lv_obj_align(vehicle_coolant_value_label, LV_ALIGN_TOP_MID, 0, 126);
lv_obj_align(vehicle_coolant_value_label, LV_ALIGN_TOP_MID, 0, 124);
lv_obj_t *fuel_icon = lv_img_create(vehicle_card);
lv_img_set_src(fuel_icon, &gas_station);