dashboard: attach page swipe handler to overview
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
static const char *DASHBOARD_VERSION = "0.1.79-battery-detail-font-fix";
|
||||
static const char *DASHBOARD_VERSION = "0.1.80-page-switch-fix";
|
||||
|
||||
// Update these if your Cargo ESP AP credentials are different.
|
||||
static const char *CARGO_WIFI_SSID = "OverlandController";
|
||||
|
||||
@@ -654,7 +654,7 @@ static void create_battery_detail_screen()
|
||||
make_detail_label(system_card, &title_label, "BATTERY DETAIL", &lv_font_montserrat_26, lv_color_hex(0xDDE3EA), 360, LV_ALIGN_LEFT_MID, 22, 0);
|
||||
|
||||
lv_obj_t *page_dots = lv_label_create(system_card);
|
||||
lv_label_set_text(page_dots, "● ○");
|
||||
lv_label_set_text(page_dots, "BATT >");
|
||||
lv_obj_set_style_text_color(page_dots, lv_color_hex(0xB8C0C8), 0);
|
||||
lv_obj_set_width(page_dots, 120);
|
||||
lv_obj_set_style_text_align(page_dots, LV_TEXT_ALIGN_RIGHT, 0);
|
||||
@@ -1762,7 +1762,7 @@ cargo_status_dot = lv_obj_create(system_card);
|
||||
lv_obj_align(outside_status_temp_label, LV_ALIGN_CENTER, 0, 0);
|
||||
|
||||
lv_obj_t *page_dots = lv_label_create(system_card);
|
||||
lv_label_set_text(page_dots, "○ ●");
|
||||
lv_label_set_text(page_dots, "< MAIN");
|
||||
lv_obj_set_style_text_color(page_dots, lv_color_hex(0xB8C0C8), 0);
|
||||
lv_obj_set_width(page_dots, 120);
|
||||
lv_obj_set_style_text_align(page_dots, LV_TEXT_ALIGN_RIGHT, 0);
|
||||
|
||||
Reference in New Issue
Block a user