From 74abe2348249a7ecc69ecfb5e88c37cc9d0936a7 Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Sun, 2 Aug 2026 14:35:48 +0200 Subject: [PATCH] adjust calender and mvg UI --- include/theme.h | 2 -- src/ui/calendar_detail_screen.cpp | 2 +- src/ui/mvg_screen.cpp | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/theme.h b/include/theme.h index a9c1baa..066c4b1 100644 --- a/include/theme.h +++ b/include/theme.h @@ -31,8 +31,6 @@ inline lv_color_t accentSun() { return lv_color_hex(0xFBC02D); } inline lv_color_t accentRain() { return lv_color_hex(0x4FC3F7); } inline lv_color_t accentUBahn() { return lv_color_hex(0x0079F6); } // MVG U-Bahn blue inline lv_color_t accentSBahn() { return lv_color_hex(0x0CB87E); } // MVG S-Bahn green -inline lv_color_t accentBus() { return lv_color_hex(0xF57C00); } // MVG Bus orange -inline lv_color_t accentTram() { return lv_color_hex(0xE040FB); } // MVG Tram magenta inline lv_color_t accentWarn() { return lv_color_hex(0xFFB300); } inline lv_color_t accentError() { return lv_color_hex(0xF44336); } inline lv_color_t accentStorm() { return lv_color_hex(0xFFD54F); } diff --git a/src/ui/calendar_detail_screen.cpp b/src/ui/calendar_detail_screen.cpp index a6d5c6e..8cff660 100644 --- a/src/ui/calendar_detail_screen.cpp +++ b/src/ui/calendar_detail_screen.cpp @@ -54,7 +54,7 @@ void buildList() { lv_obj_t *sum = lv_label_create(row); lv_label_set_text(sum, sanitizeGermanText(ev.summary.substring(0, 30)).c_str()); lv_obj_set_style_text_color(sum, Theme::text(), 0); - lv_label_set_long_mode(sum, LV_TEXT_LONG_DOT); + lv_label_set_long_mode(sum, LV_LABEL_LONG_MODE_DOTS); lv_obj_set_width(sum, 112); lv_obj_align(sum, LV_ALIGN_TOP_LEFT, 156, 0); } diff --git a/src/ui/mvg_screen.cpp b/src/ui/mvg_screen.cpp index cc50e1d..79d6fb2 100644 --- a/src/ui/mvg_screen.cpp +++ b/src/ui/mvg_screen.cpp @@ -19,8 +19,6 @@ const unsigned long REFRESH_INTERVAL_MS = 60UL * 1000UL; lv_color_t typeColor(const String &type) { if (type == "UBAHN") return Theme::accentUBahn(); if (type == "SBAHN") return Theme::accentSBahn(); - if (type == "BUS") return Theme::accentBus(); - if (type == "TRAM") return Theme::accentTram(); return Theme::textDim(); }