dashboard: position fuel icon beside bar
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
static const char *DASHBOARD_VERSION = "0.1.64-align-fuel-icon-bar";
|
||||
static const char *DASHBOARD_VERSION = "0.1.65-fuel-icon-left";
|
||||
|
||||
// Update these if your Cargo ESP AP credentials are different.
|
||||
static const char *CARGO_WIFI_SSID = "OverlandController";
|
||||
|
||||
@@ -1295,7 +1295,7 @@ static void create_overland_overview_screen()
|
||||
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, 34, -23);
|
||||
lv_obj_align(fuel_icon, LV_ALIGN_BOTTOM_LEFT, 16, -20);
|
||||
|
||||
vehicle_fuel_bar = lv_bar_create(vehicle_card);
|
||||
lv_obj_add_event_cb(vehicle_fuel_bar, fuel_bar_draw_value_cb, LV_EVENT_DRAW_PART_END, NULL);
|
||||
|
||||
Reference in New Issue
Block a user