dashboard: recolor vehicle icons white

This commit is contained in:
2026-06-11 23:33:11 -06:00
parent 8fa4663f54
commit 1b1c969494
2 changed files with 5 additions and 1 deletions
@@ -1,6 +1,6 @@
#pragma once #pragma once
static const char *DASHBOARD_VERSION = "0.1.61-coolant-gauge-layout"; static const char *DASHBOARD_VERSION = "0.1.62-white-vehicle-icons";
// 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";
@@ -1252,6 +1252,8 @@ static void create_overland_overview_screen()
lv_obj_t *coolant_icon = lv_img_create(vehicle_card); lv_obj_t *coolant_icon = lv_img_create(vehicle_card);
lv_img_set_src(coolant_icon, &thermometer_water); lv_img_set_src(coolant_icon, &thermometer_water);
lv_obj_set_style_img_recolor(coolant_icon, lv_color_white(), 0);
lv_obj_set_style_img_recolor_opa(coolant_icon, LV_OPA_COVER, 0);
lv_img_set_zoom(coolant_icon, 100); lv_img_set_zoom(coolant_icon, 100);
lv_obj_align(coolant_icon, LV_ALIGN_TOP_MID, 0, 150); lv_obj_align(coolant_icon, LV_ALIGN_TOP_MID, 0, 150);
@@ -1290,6 +1292,8 @@ static void create_overland_overview_screen()
lv_obj_t *fuel_icon = lv_img_create(vehicle_card); lv_obj_t *fuel_icon = lv_img_create(vehicle_card);
lv_img_set_src(fuel_icon, &gas_station); lv_img_set_src(fuel_icon, &gas_station);
lv_obj_set_style_img_recolor(fuel_icon, lv_color_white(), 0);
lv_obj_set_style_img_recolor_opa(fuel_icon, LV_OPA_COVER, 0);
lv_img_set_zoom(fuel_icon, 90); lv_img_set_zoom(fuel_icon, 90);
lv_obj_align(fuel_icon, LV_ALIGN_BOTTOM_LEFT, 18, 4); lv_obj_align(fuel_icon, LV_ALIGN_BOTTOM_LEFT, 18, 4);