/* Recursively refresh the style of the children. Go deeper until a not NULL style is found because the NULL styles are inherited from the parent  */
static void refresh_children_style(lv_obj_t *obj)
/* Recursively refresh the style of the children. Go deeper until a not NULL style is found because the NULL styles are inherited from the parent  */
static void refresh_children_style(lv_obj_t *obj)
{
    uint32_t i;
    uint32_t child_cnt = lv_obj_get_child_count(obj);
    for(i = 0; i < child_cnt; i++) {
        lv_obj_t * child = obj->spec_attr->children[i];
        lv_obj_invalidate(child);
        lv_obj_send_event(child, LV_EVENT_STYLE_CHANGED, NULL);
        lv_obj_invalidate(child);
        refresh_children_style(child);
    }
}