From d5cfd02def3e2357c1506388f9f8e9ec9d81ab08 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 16 Nov 2019 11:36:06 +0100 Subject: [PATCH] mono theme fix uninited styles --- src/lv_themes/lv_theme_mono.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lv_themes/lv_theme_mono.c b/src/lv_themes/lv_theme_mono.c index 6056097ec..54046fa37 100644 --- a/src/lv_themes/lv_theme_mono.c +++ b/src/lv_themes/lv_theme_mono.c @@ -76,14 +76,14 @@ static void basic_init(void) def.image.intense = LV_OPA_TRANSP; def.image.opa = LV_OPA_COVER; + lv_style_copy(&light_plain, &def); + lv_style_copy(&scr, &light_plain); scr.body.padding.bottom = 0; scr.body.padding.top = 0; scr.body.padding.left = 0; scr.body.padding.right = 0; - lv_style_copy(&light_plain, &def); - lv_style_copy(&light_frame, &light_plain); light_frame.body.radius = LV_DPI / 20;