How to add back the removed knob of an arc

Important: unclear posts may not receive useful answers.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the FAQ and read the relevant part of the documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.


I removed the Knob of an arc during the start of some conditions and I want to add the knob again.
I used the following API.
lv_obj_remove_style(arc, NULL, LV_PART_KNOB);

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


What LVGL version are you using?


What do you want to achieve?

creating a GUI for a smart timer

What have you tried so far?

You don’t have to remove the style. Just set the background opa to 0 and when you want it back set the opa to 255

1 Like

Hello kdschlosser,
I used lv_obj_set_style_bg_opa and did work.
Thank you very much!

no worries m8, mark my post as the solution so other will know it is solved.

I done it. Thank you!