From 6360b0bb70030b897baf12e4d4f47528bb045653 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 11 Jun 2026 23:22:07 -0600 Subject: [PATCH] dashboard: maximize coolant meter --- firmware/esp32-s3-dashboard/dashboard_config.h | 2 +- firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/esp32-s3-dashboard/dashboard_config.h b/firmware/esp32-s3-dashboard/dashboard_config.h index 2055c94..7243511 100644 --- a/firmware/esp32-s3-dashboard/dashboard_config.h +++ b/firmware/esp32-s3-dashboard/dashboard_config.h @@ -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"; diff --git a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino index 5fba975..d3f4a66 100644 --- a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino +++ b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino @@ -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);