1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

minor theme updates

This commit is contained in:
Gabor Kiss-Vamosi 2019-11-16 12:29:47 +01:00
parent 20a13918d1
commit 679419b151
2 changed files with 5 additions and 1 deletions

View File

@ -327,6 +327,10 @@ static void slider_init(void)
slider_knob.body.border.width = 1;
slider_knob.body.border.color = LV_COLOR_GRAY;
slider_knob.body.border.opa = LV_OPA_50;
slider_knob.body.padding.left = LV_DPI/25;
slider_knob.body.padding.right = LV_DPI/25;
slider_knob.body.padding.top = LV_DPI/25;
slider_knob.body.padding.bottom = LV_DPI/25;
theme.style.slider.bg = &bar_bg;
theme.style.slider.indic = &bar_indic;

View File

@ -217,7 +217,7 @@ static void bar_init(void)
bar_bg.body.padding.top = LV_DPI / 16;
bar_bg.body.padding.bottom = LV_DPI / 16;
bar_bg.body.radius = LV_RADIUS_CIRCLE;
bar_bg.body.corner_mask = 1;
// bar_bg.body.corner_mask = 1;
lv_style_copy(&bar_indic, &def);
bar_indic.body.main_color = lv_color_hsv_to_rgb(_hue, 80, 70);