adjust calender and mvg UI

This commit is contained in:
2026-08-02 14:35:48 +02:00
parent 4f596a8f85
commit 74abe23482
3 changed files with 1 additions and 5 deletions
-2
View File
@@ -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); }
+1 -1
View File
@@ -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);
}
-2
View File
@@ -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();
}