mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix a style refresh issue
This commit is contained in:
parent
748009735c
commit
57619fca06
@ -808,6 +808,9 @@ void lv_obj_set_style(lv_obj_t * obj, lv_style_t * style)
|
||||
/*Send a signal about style change to every children with NULL style*/
|
||||
lv_child_refr_style(obj);
|
||||
|
||||
/*Notify the object about the style change too*/
|
||||
lv_obj_refr_style(obj);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1526,7 +1529,7 @@ static void lv_child_refr_style(lv_obj_t * obj)
|
||||
while(child != NULL) {
|
||||
if(child->style_p == NULL) {
|
||||
lv_child_refr_style(child); /*Check children too*/
|
||||
lv_obj_refr_style(obj); /*Send a style change signal to the object*/
|
||||
lv_obj_refr_style(child); /*Notify the child about the style change*/
|
||||
} else if(child->style_p->glass) {
|
||||
/*Children with 'glass' parent might be effected if their style == NULL*/
|
||||
lv_child_refr_style(child);
|
||||
|
Loading…
x
Reference in New Issue
Block a user