Recolor the Meter Needle Img


Hi all,

I want to recolor the needle in the meter widget. I managed to do it with the knob of the Slider by using:

  • lv_obj_set_style_bg_img_recolor
  • lv_obj_set_style_bg_img_recolor_opa

But I couldn’t do it with the meter’s needle

someone can help me?


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


What LVGL version are you using?

V8 and V9

What do you want to achieve?

What have you tried so far?

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

If possible, add screenshots and/or videos about the current state.