dashboard: make main side cards equal width
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
static const char *DASHBOARD_VERSION = "0.1.124-main-top-row-dynamic-balance";
|
||||
static const char *DASHBOARD_VERSION = "0.1.125-equal-main-side-cards";
|
||||
|
||||
// Update these if your Cargo ESP AP credentials are different.
|
||||
//static const char *CARGO_WIFI_SSID = "OverlandController";
|
||||
|
||||
@@ -1927,11 +1927,11 @@ current_dashboard_screen = SCREEN_OVERVIEW;
|
||||
lv_obj_t *system_card = create_card(screen, "", 960, 48, LV_ALIGN_TOP_MID, 0, 12);
|
||||
lv_obj_add_flag(system_card, LV_OBJ_FLAG_CLICKABLE);
|
||||
lv_obj_add_event_cb(system_card, system_card_event_cb, LV_EVENT_CLICKED, nullptr);
|
||||
lv_obj_t *battery_card = create_card(screen, "", 330, 310, LV_ALIGN_TOP_LEFT, 32, 68);
|
||||
lv_obj_t *battery_card = create_card(screen, "", 350, 310, LV_ALIGN_TOP_LEFT, 32, 68);
|
||||
battery_card_obj = battery_card;
|
||||
add_battery_card_tap_target(battery_card);
|
||||
lv_obj_t *temp_card = create_card(screen, "", 260, 310, LV_ALIGN_TOP_LEFT, 382, 68);
|
||||
lv_obj_t *vehicle_card = create_card(screen, "", 292, 310, LV_ALIGN_TOP_RIGHT, -32, 68);
|
||||
lv_obj_t *temp_card = create_card(screen, "", 260, 310, LV_ALIGN_TOP_LEFT, 394, 68);
|
||||
lv_obj_t *vehicle_card = create_card(screen, "", 350, 310, LV_ALIGN_TOP_RIGHT, -32, 68);
|
||||
lv_obj_t *relay_card = create_card(screen, "", 960, 205, LV_ALIGN_BOTTOM_MID, 0, -8);
|
||||
|
||||
battery_charge_pulse_arc = lv_arc_create(battery_card);
|
||||
|
||||
Reference in New Issue
Block a user