How to achieve recolor of SVG format images?

What do you want to achieve?

How can i recolor the SVG format images by using the common methods?

What have you tried so far?

I have already opened macros such as LV-USE-SVG and LV_USE_THORVG_INTERNAL in version 9.3.0 and I can successfully display SVG format images. However, I am unable to achieve the effect of mouse hover recolor on images through methods such as lv_obj-set_style_image_recolor or lv_obj-set_style_color.

Code to reproduce

/*You code here*/

Screenshot and/or video

Environment

  • MCU/MPU/Board:
  • LVGL version: See lv_version.h 9.3.0

@SupreLuc , methods like lv_set_style_image_recolor or lv_obj_set_style_color do not apply to SGV images. This is because these methods work with already rendered bitmaps, while SGV has a different rendering process. An alternative is to use lv_canvas to recolor your image, check this link: