dashboard: revert vehicle icons to lvgl drawings

This commit is contained in:
2026-06-11 03:29:57 -06:00
parent b9847b88cb
commit 22d4b4c6da
4 changed files with 3 additions and 1691 deletions
@@ -7,8 +7,6 @@
#include <lvgl.h>
#include "lvgl_v8_port.h"
#include "dashboard_config.h"
#include "gas_pump.h"
#include "water_temp.h"
#include "dashboard_status_model.h"
using namespace esp_panel::drivers;
@@ -1250,13 +1248,7 @@ static void create_overland_overview_screen()
lv_obj_align(temp_tile_name_labels[i], LV_ALIGN_TOP_MID, 0, 86);
}
lv_obj_t *coolant_icon = lv_img_create(vehicle_card);
lv_img_set_src(coolant_icon, &water_coolant);
lv_img_set_zoom(coolant_icon, 18);
lv_obj_set_size(coolant_icon, 60, 60);
lv_obj_clear_flag(coolant_icon, LV_OBJ_FLAG_SCROLLABLE);
lv_obj_set_style_img_recolor(coolant_icon, lv_color_hex(0x84CAFF), 0);
lv_obj_set_style_img_recolor_opa(coolant_icon, LV_OPA_COVER, 0);
lv_obj_t *coolant_icon = create_coolant_icon(vehicle_card);
lv_obj_align(coolant_icon, LV_ALIGN_TOP_LEFT, 6, 6);
#if LV_USE_METER
@@ -1292,13 +1284,7 @@ static void create_overland_overview_screen()
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_t *fuel_icon = lv_img_create(vehicle_card);
lv_img_set_src(fuel_icon, &gas_pump);
lv_img_set_zoom(fuel_icon, 16);
lv_obj_set_size(fuel_icon, 54, 54);
lv_obj_clear_flag(fuel_icon, LV_OBJ_FLAG_SCROLLABLE);
lv_obj_set_style_img_recolor(fuel_icon, lv_color_hex(0xDDE3EA), 0);
lv_obj_set_style_img_recolor_opa(fuel_icon, LV_OPA_COVER, 0);
lv_obj_t *fuel_icon = create_fuel_icon(vehicle_card);
lv_obj_align(fuel_icon, LV_ALIGN_BOTTOM_LEFT, 4, -8);
vehicle_fuel_bar = lv_bar_create(vehicle_card);