Description
Trying to change the color of the lv_meter arc from another function. After changing the color with lv_obj_set_style_arc_color, nothing changes. I can change the values of the dial but not the color?
What MCU/Processor/Board and compiler are you using?
ESP32
What LVGL version are you using?
9.0-dev
What do you want to achieve?
Change indicator color from another function
What have you tried so far?
Init function:
lv_obj_set_style_arc_color(ui_Meter, lv_color_hex(0xFB8806), LV_PART_INDICATOR | LV_STATE_DEFAULT);
lv_obj_set_style_arc_opa(ui_Meter, 255, LV_PART_INDICATOR | LV_STATE_DEFAULT);
Change function:
lv_obj_set_style_arc_color(ui_Meter, lv_palette_main(LV_PALETTE_BLUE), LV_PART_INDICATOR);