Hello,
I try to use the function “lv_style_set_bg_color()” but I see that in many examples there are three parameters (style, state,color) but in the file lv_style_gen.h (and .c) there are only two parameters (stytle, color). Where the functions with 3 parameters come from?
Thanks in advance
Hi @PAD,
In older versions (v7), style properties were bound directly to an object state (such as LV_STATE_DEFAULT, LV_STATE_PRESSED, or LV_STATE_FOCUSED) directly inside the setter function.
In majors version the style system was redesigned. The state is no longer set inside lv_style_set_*()