lv_obj_add_style() function
Add a style to an object.
Arguments
style
pointer to a style to add
selector
OR-ed value of parts and state to which the style should be added @example lv_obj_add_style(btn, &style_btn, 0); //Default button style @example lv_obj_add_style(btn, &btn_red, LV_STATE_PRESSED); //Overwrite only some colors to red when pressed