- Added MainUIHandler class to manage the main UI and polling for arrival data. - Introduced SettingsUI class for displaying QR code and configuration options. - Created SettingsUIHandler to manage settings UI lifecycle and web server interactions. - Developed WebHandler to handle HTTP requests for MTR route settings, including adding and removing routes. - Implemented web endpoints for fetching MTR lines, routes, and saving settings. - Enhanced UI with responsive design for e-ink displays and added error handling for web interactions.
13 lines
410 B
C++
13 lines
410 B
C++
#include "ui/apps/travel/descriptor.h"
|
|
#include "ui/apps/travel/app.h"
|
|
|
|
TravelDescriptor::TravelDescriptor()
|
|
: AppDescriptor("Travel", std::make_unique<TravelApp>()) { }
|
|
|
|
void TravelDescriptor::draw_icon(lv_obj_t* parent) {
|
|
// Draw train icon using LVGL symbol
|
|
lv_obj_t* icon = lv_label_create(parent);
|
|
lv_label_set_text(icon, LV_SYMBOL_DRIVE); // Using drive symbol as train
|
|
lv_obj_center(icon);
|
|
}
|