From 1cf5d5db9efd5feb6d525ec634696e86068cb786 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 14 Jun 2018 20:54:47 +0200 Subject: [PATCH] lv_theme_mono: add more line space to ddlist and roller --- lv_themes/lv_theme_mono.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lv_themes/lv_theme_mono.c b/lv_themes/lv_theme_mono.c index 4fc020381..b40e0bcb5 100644 --- a/lv_themes/lv_theme_mono.c +++ b/lv_themes/lv_theme_mono.c @@ -39,6 +39,7 @@ static lv_style_t dark_frame; static uint16_t _hue; static lv_font_t * _font; + /********************** * MACROS **********************/ @@ -345,9 +346,11 @@ static void list_init(void) static void ddlist_init(void) { #if USE_LV_DDLIST != 0 + static lv_style_t bg; + lv_style_copy(&bg, &light_frame); + bg.text.line_space = LV_DPI / 12; - - theme.ddlist.bg = &light_frame; + theme.ddlist.bg = &bg; theme.ddlist.sel = &dark_plain; theme.ddlist.sb = &dark_frame; #endif @@ -356,9 +359,11 @@ static void ddlist_init(void) static void roller_init(void) { #if USE_LV_ROLLER != 0 + static lv_style_t bg; + lv_style_copy(&bg, &light_frame); + bg.text.line_space = LV_DPI / 12; - - theme.roller.bg = &light_frame; + theme.roller.bg = &bg; theme.roller.sel = &dark_frame; #endif }