Description
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?
ESP32
What LVGL version are you using?
v7.5
What do you want to achieve?
Fill the area behind a label in the background colour
Hi
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);
2 Likes
That’s great and works well Thanks for the quick reply!
1 Like