dashboard: fix vehicle card newlines
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
static const char *DASHBOARD_VERSION = "0.1.46-vehicle-sample-card";
|
||||
static const char *DASHBOARD_VERSION = "0.1.47-vehicle-card-newlines";
|
||||
|
||||
// Update these if your Cargo ESP AP credentials are different.
|
||||
static const char *CARGO_WIFI_SSID = "OverlandController";
|
||||
|
||||
@@ -1131,11 +1131,11 @@ static void create_overland_overview_screen()
|
||||
|
||||
lv_obj_t *vehicle_label = lv_label_create(vehicle_card);
|
||||
lv_label_set_text(vehicle_label,
|
||||
"Coolant 188\\n"
|
||||
"Trans --\\n"
|
||||
"Fuel --%\\n"
|
||||
"4WD --\\n"
|
||||
"Tilt --"
|
||||
"Coolant 188\n"
|
||||
"Trans --\n"
|
||||
"Fuel --%\n"
|
||||
"4WD --\n"
|
||||
"Tilt --"
|
||||
);
|
||||
lv_obj_set_style_text_color(vehicle_label, lv_color_hex(0xDDE3EA), 0);
|
||||
lv_obj_set_style_text_font(vehicle_label, &lv_font_montserrat_30, 0);
|
||||
|
||||
Reference in New Issue
Block a user