mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-08-29 07:08:52 +00:00
ui: light/dark theme toggle
This commit is contained in:
@@ -203,6 +203,13 @@ void LvStatusBar::setUse24Hour(bool use24h) {
|
||||
updateTime();
|
||||
}
|
||||
|
||||
void LvStatusBar::applyTheme() {
|
||||
if (_lblToast) lv_obj_set_style_text_color(_lblToast, lv_color_hex(Theme::BG), 0);
|
||||
refreshIndicators();
|
||||
refreshBattery();
|
||||
refreshTimeColor();
|
||||
}
|
||||
|
||||
void LvStatusBar::refreshIndicators() {
|
||||
if (!_lblLinks) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user