I am upgrading a codebase from v6 to the latest release/v7 branch and lv_label_set_body_draw no longer exists. What is the best way to replicate the functionality of this in v7?
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
What do you want to achieve?
Fill the area behind a label in the background colour
With the new style system in v7, there’s no need to this function anymore.
you can do this by these functions:
lv_obj_set_style_local_bg_opa(obj, part, state, value);
lv_obj_set_style_local_bg_color(obj, part, state, value);
lv_obj_set_style_local_bg_grad_color(obj, part, state, value);
lv_obj_set_style_local_bg_grad_dir(obj, part, state, value);
That’s great and works well Thanks for the quick reply!