Same question, diferent LVGL version since there is nothing about “LV_SPINNER_PART_BG” and so on, in v8
Is there any way to change the spinner’s thickness?
Thanks
Coffen
Same question, diferent LVGL version since there is nothing about “LV_SPINNER_PART_BG” and so on, in v8
Is there any way to change the spinner’s thickness?
Thanks
Coffen
I haven’t compiled it but this should do the trick:
uint32_t desired_thickness = 30;
lv_obj_set_style_arc_width(spinner, desired_thickness, LV_PART_INDICATOR);
lv_obj_set_style_arc_width(spinner, desired_thickness, LV_PART_MAIN);
Thanks, your solution works like a charm.
I have tried different approach
const lv_style_const_prop_t const_spinner_style[] = {
LV_STYLE_CONST_ARC_WIDTH(5),
};
LV_STYLE_CONST_INIT(spinner_style, const_spinner_style);
This only change width of the rounded circle. How to change the inner one?
Coffen
I think you just need to add spinner_style
to both LV_PART_INDICATOR
to LV_PART_MAIN
and it should work (not sure if you’re doing that already).