From 9bec7721e73b2dcf3df4a7d1f2e42ada37d9851f Mon Sep 17 00:00:00 2001 From: philmoz Date: Fri, 22 Sep 2023 18:55:24 +1000 Subject: [PATCH] fix(color): Ensure all items are updated on theme change in user interface settings (#4084) --- radio/src/gui/colorlcd/screen_user_interface.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/radio/src/gui/colorlcd/screen_user_interface.cpp b/radio/src/gui/colorlcd/screen_user_interface.cpp index a79ca9b63..b8922d707 100644 --- a/radio/src/gui/colorlcd/screen_user_interface.cpp +++ b/radio/src/gui/colorlcd/screen_user_interface.cpp @@ -62,11 +62,6 @@ class ThemeView : public FormWindow padAll(0); setFlexLayout(LV_FLEX_FLOW_COLUMN, 0); - update(); - } - - void update() - { auto tp = ThemePersistance::instance(); auto theme = tp->getCurrentTheme(); @@ -166,7 +161,10 @@ void ScreenUserInterfacePage::build(FormWindow* window) tp->applyTheme(value); tp->setDefaultTheme(value); TabsGroup::refreshTheme(); - themeView->update(); + + // Force redraw to ensure all items are updated with new theme colors + window->clear(); + build(window); }); grid.setColSpan(2);