lv_theme_mono: add more line space to ddlist and roller

This commit is contained in:
Gabor Kiss-Vamosi
2018-06-14 20:54:47 +02:00
parent 73c83cbd25
commit 1cf5d5db9e

View File

@@ -39,6 +39,7 @@ static lv_style_t dark_frame;
static uint16_t _hue; static uint16_t _hue;
static lv_font_t * _font; static lv_font_t * _font;
/********************** /**********************
* MACROS * MACROS
**********************/ **********************/
@@ -345,9 +346,11 @@ static void list_init(void)
static void ddlist_init(void) static void ddlist_init(void)
{ {
#if USE_LV_DDLIST != 0 #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 = &bg;
theme.ddlist.bg = &light_frame;
theme.ddlist.sel = &dark_plain; theme.ddlist.sel = &dark_plain;
theme.ddlist.sb = &dark_frame; theme.ddlist.sb = &dark_frame;
#endif #endif
@@ -356,9 +359,11 @@ static void ddlist_init(void)
static void roller_init(void) static void roller_init(void)
{ {
#if USE_LV_ROLLER != 0 #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 = &bg;
theme.roller.bg = &light_frame;
theme.roller.sel = &dark_frame; theme.roller.sel = &dark_frame;
#endif #endif
} }