perf(coord. refr.): imrove the speed of layout, size and position recalculation

Reduce the number of refreshes.
This commit is contained in:
Gabor Kiss-Vamosi
2021-05-05 15:53:54 +02:00
parent 79d9f299ef
commit 6cb28da8e9
7 changed files with 46 additions and 66 deletions

View File

@@ -643,7 +643,7 @@ static void theme_apply(lv_theme_t * th, lv_obj_t * obj)
lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR);
lv_obj_add_style(obj, &styles->scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED);
}
#if LV_USE_BTN
#if LV_USE_BTN
else if(lv_obj_check_type(obj, &lv_btn_class)) {
lv_obj_add_style(obj, &styles->btn, 0);
lv_obj_add_style(obj, &styles->bg_color_primary, 0);