How to reduce the distance from the border of the widget to the arc


I want to reduce the distance from the actual border line of the widget to the arc, but I don’t see the corresponding API afterwards.

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?


What do you want to achieve?

reduce the distance from the border of widget to arc.

What have you tried so far?

using some lv_obj_set_style_local API

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

2021-04-12 15-18-08 的屏幕截图

Please refer to the code below.

lv_obj_set_style_local_pad_top(arc, LV_ARC_PART_BG, LV_STATE_DEFAULT, 30);   // 
lv_obj_set_style_local_pad_bottom(arc, LV_ARC_PART_BG, LV_STATE_DEFAULT, 30);   //
lv_obj_set_style_local_pad_left(arc, LV_ARC_PART_BG, LV_STATE_DEFAULT, 30);   // 
lv_obj_set_style_local_pad_right(arc, LV_ARC_PART_BG, LV_STATE_DEFAULT, 30);

Thank you very much, this is what I want.