From 285890cb9cc69dd8cdad002f57cd28bea3d84963 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 9 Aug 2023 13:18:10 +0200 Subject: [PATCH] load theme on start --- Core/Src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/Src/main.c b/Core/Src/main.c index f3dd371..07ec24f 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -181,6 +181,10 @@ int main(void) lv_disp_t * disp = lv_disp_drv_register(&disp_drv); + // load the default theme + lv_theme_t * th = lv_theme_default_init(lv_disp_get_default(), lv_color_hex(0x2BAEE1), lv_color_hex(0x001361), true, LV_FONT_DEFAULT); + lv_disp_set_theme(lv_disp_get_default(), th); + // initialize LVGL touchscreen input lv_indev_drv_t indev_drv; lv_indev_drv_init(&indev_drv);