From 6f4ace1dd4b9b34f95af1ba365b68624e209d147 Mon Sep 17 00:00:00 2001 From: ailurux Date: Mon, 28 Aug 2023 14:59:29 +1000 Subject: Custom themes and top bar styling --- src/ui/lvgl_task.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ui/lvgl_task.cpp') diff --git a/src/ui/lvgl_task.cpp b/src/ui/lvgl_task.cpp index a9af0900..9952d0bb 100644 --- a/src/ui/lvgl_task.cpp +++ b/src/ui/lvgl_task.cpp @@ -70,8 +70,7 @@ void LvglMain(std::weak_ptr weak_touch_wheel, lv_theme_t* base_theme = lv_theme_basic_init(NULL); lv_disp_set_theme(NULL, base_theme); - static themes::Theme sTheme{}; - sTheme.Apply(); + themes::Theme::instance()->Apply(); TouchWheelEncoder encoder(weak_touch_wheel); -- cgit v1.2.3