From a9f110da1ea77dcfea8231bbc2be83da5fd4880a Mon Sep 17 00:00:00 2001 From: Todd Goyen Date: Mon, 13 Apr 2020 19:32:21 -0700 Subject: [PATCH] Correct style_tick_line in Mono theme to only be created if the Spinner is Enabled --- src/lv_themes/lv_theme_mono.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lv_themes/lv_theme_mono.c b/src/lv_themes/lv_theme_mono.c index 35a55e355..962f97225 100644 --- a/src/lv_themes/lv_theme_mono.c +++ b/src/lv_themes/lv_theme_mono.c @@ -37,7 +37,6 @@ static lv_style_t style_btn; static lv_style_t style_round; static lv_style_t style_no_radius; static lv_style_t style_fg_color; -static lv_style_t style_tick_line; static lv_style_t style_border_none; static lv_style_t style_big_line_space; /*In roller or dropdownlist*/ static lv_style_t style_pad_none; @@ -73,6 +72,10 @@ static lv_style_t style_gauge_needle, style_gauge_major; static lv_style_t style_sb; #endif +#if LV_USE_SPINNER +static lv_style_t style_tick_line; +#endif + #if LV_USE_TEXTAREA static lv_style_t style_ta_cursor; #endif