mirror of
https://github.com/skoelle/wt32sc01-dashboard.git
synced 2026-09-17 17:30:25 +00:00
adjust calender and mvg UI
This commit is contained in:
@@ -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); }
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user