lv_theme_mono: add more line space to ddlist and roller
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user