dashboard: add sample vehicle card data
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
static const char *DASHBOARD_VERSION = "0.1.45-vehicle-card-wider";
|
static const char *DASHBOARD_VERSION = "0.1.46-vehicle-sample-card";
|
||||||
|
|
||||||
// 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";
|
||||||
|
|||||||
@@ -1130,9 +1130,20 @@ static void create_overland_overview_screen()
|
|||||||
}
|
}
|
||||||
|
|
||||||
lv_obj_t *vehicle_label = lv_label_create(vehicle_card);
|
lv_obj_t *vehicle_label = lv_label_create(vehicle_card);
|
||||||
lv_label_set_text(vehicle_label, "Vehicle\n\nOffline\n\nFuture:\nCoolant\nTrans Temp\n4WD\nTilt/Roll");
|
lv_label_set_text(vehicle_label,
|
||||||
|
"Coolant 188°
|
||||||
|
"
|
||||||
|
"Trans --
|
||||||
|
"
|
||||||
|
"Fuel --%
|
||||||
|
"
|
||||||
|
"4WD --
|
||||||
|
"
|
||||||
|
"Tilt --°"
|
||||||
|
);
|
||||||
lv_obj_set_style_text_color(vehicle_label, lv_color_hex(0xDDE3EA), 0);
|
lv_obj_set_style_text_color(vehicle_label, lv_color_hex(0xDDE3EA), 0);
|
||||||
lv_obj_set_width(vehicle_label, 220);
|
lv_obj_set_style_text_font(vehicle_label, &lv_font_montserrat_30, 0);
|
||||||
|
lv_obj_set_width(vehicle_label, 260);
|
||||||
lv_label_set_long_mode(vehicle_label, LV_LABEL_LONG_WRAP);
|
lv_label_set_long_mode(vehicle_label, LV_LABEL_LONG_WRAP);
|
||||||
lv_obj_align(vehicle_label, LV_ALIGN_CENTER, 0, 0);
|
lv_obj_align(vehicle_label, LV_ALIGN_CENTER, 0, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user