Decommission SquareLine: delete include/ui, theme set in display_init
Firmware / build (push) Successful in 4m1s

include/ui (SquareLine export: ui_init, placeholder screen, helpers, theme
manager, project metadata) is no longer used - every screen is hand-coded.
The one live line, the dark default LVGL theme, moves to display_init.cpp.
Build filter and include path drop include/ui. Comments, CLAUDE.md and the
stale README sections (features, layout, partitions) updated.

Verified on the board (USB, dev): Wi-Fi on/forget/scan/join, dark keyboard
and dialogs, update check + install of v0.1.5 from the screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 08:17:01 +02:00
parent 5d495f8ad1
commit 34b3fc7ec0
21 changed files with 42 additions and 918 deletions
+10 -8
View File
@@ -4,7 +4,6 @@
#include "display_init.h"
#include "display/lvgl_v8_port.h"
#include "ui/ui.h"
#include "driveline_screen.h"
#include "config/ota_config.h" // FW_VERSION
@@ -90,17 +89,20 @@ DisplayObjects init() {
Serial.println("[DisplayInit] Step 11: LVGL initialized successfully!");
Serial.flush();
// Step 12-13: Load SquareLine Studio UI
Serial.println("[DisplayInit] Step 12: Loading SquareLine Studio UI...");
// Step 12-13: Theme + boot screen
Serial.println("[DisplayInit] Step 12: Loading UI...");
lvgl_port_lock(-1);
ui_init(); // Initialize the SquareLine Studio generated UI
// Boot screen: the hand-coded Driveline screen. ui_init() only loads an
// empty placeholder now (the SquareLine Home screen was removed 2026-09-21);
// swap while the backlight is still off so there's no flash.
// Dark default theme, blue primary. The hand-coded screens override most
// styles, but the keyboard, dialogs, text areas, switches and sliders take
// their base look from it.
lv_disp_t* disp = lv_disp_get_default();
lv_disp_set_theme(disp, lv_theme_default_init(disp, lv_palette_main(LV_PALETTE_BLUE),
lv_palette_main(LV_PALETTE_RED), true, LV_FONT_DEFAULT));
// Boot screen, loaded while the backlight is still off so there's no flash.
DrivelineScreen::show();
createVersionLabel();
lvgl_port_unlock();
Serial.println("[DisplayInit] Step 13: SquareLine UI loaded successfully!");
Serial.println("[DisplayInit] Step 13: UI loaded");
// Small delay to ensure UI is rendered
delay(100);