summaryrefslogtreecommitdiff
path: root/src/ui/lvgl_task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/lvgl_task.cpp')
-rw-r--r--src/ui/lvgl_task.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/lvgl_task.cpp b/src/ui/lvgl_task.cpp
index 3ffaea03..853b3280 100644
--- a/src/ui/lvgl_task.cpp
+++ b/src/ui/lvgl_task.cpp
@@ -22,6 +22,7 @@
#include "core/lv_obj_tree.h"
#include "esp_log.h"
#include "event_queue.hpp"
+#include "extra/themes/basic/lv_theme_basic.h"
#include "font/lv_font.h"
#include "freertos/portmacro.h"
#include "freertos/projdefs.h"
@@ -53,6 +54,9 @@ void LvglMain(std::weak_ptr<drivers::RelativeWheel> weak_touch_wheel,
ESP_LOGI(kTag, "init lvgl");
lv_init();
+ lv_theme_t* theme = lv_theme_basic_init(NULL);
+ lv_disp_set_theme(NULL, theme);
+
TouchWheelEncoder encoder(weak_touch_wheel);
std::shared_ptr<Screen> current_screen;