dashboard: recolor vehicle icons white
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#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.
|
||||
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_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_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_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_obj_align(fuel_icon, LV_ALIGN_BOTTOM_LEFT, 18, 4);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user