From cef6b09b686fa21d98ca16d6f9ea8f0acb555ecf Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 27 Sep 2018 15:06:44 +0200 Subject: [PATCH] minor theme updates --- lv_themes/lv_theme_zen.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/lv_themes/lv_theme_zen.c b/lv_themes/lv_theme_zen.c index 4fc8df6e6..5fe1442bb 100644 --- a/lv_themes/lv_theme_zen.c +++ b/lv_themes/lv_theme_zen.c @@ -335,25 +335,19 @@ static void calendar_init(void) lv_style_copy(&high_days, &def); high_days.text.color = lv_color_hsv_to_rgb(_hue, 50, 90); - static lv_style_t week_box; - lv_style_copy(&week_box, &def); - week_box.body.empty = 1; - week_box.body.border.color = theme.panel->body.border.color; - week_box.body.padding.ver = LV_DPI / 20; - static lv_style_t today_box; lv_style_copy(&today_box, &def); - today_box.body.main_color = LV_COLOR_WHITE; - today_box.body.grad_color = LV_COLOR_WHITE; + today_box.body.empty = 1; + today_box.body.border.color = theme.panel->body.border.color; today_box.body.padding.ver = LV_DPI / 20; - today_box.body.radius = 0; + today_box.body.radius = LV_RADIUS_CIRCLE; theme.calendar.bg = theme.panel; theme.calendar.header = &lv_style_transp; theme.calendar.inactive_days = &ina_days; theme.calendar.highlighted_days = &high_days; - theme.calendar.week_box = &week_box; - theme.calendar.today_box = &week_box; + theme.calendar.week_box = &lv_style_transp_fit; + theme.calendar.today_box = &today_box; #endif }