1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

minor fixes

This commit is contained in:
Gabor Kiss-Vamosi 2018-10-17 11:27:08 +02:00
parent c9111563b1
commit 4751cb16c9
4 changed files with 16 additions and 2 deletions

View File

@ -778,6 +778,10 @@ void lv_obj_report_style_mod(lv_style_t * style)
{
lv_obj_t * i;
LL_READ(scr_ll, i) {
if(i->style_p == style || style == NULL) {
lv_obj_refresh_style(i);
}
report_style_mod_core(style, i);
}
}

View File

@ -408,7 +408,7 @@ lv_obj_t * lv_list_get_prev_btn(const lv_obj_t * list, lv_obj_t * prev_btn)
if(btn == NULL) return NULL;
while(btn->signal_func != lv_list_btn_signal) {
btn = lv_obj_get_child(scrl, prev_btn);
btn = lv_obj_get_child(scrl, btn);
if(btn == NULL) break;
}
@ -434,7 +434,7 @@ lv_obj_t * lv_list_get_next_btn(const lv_obj_t * list, lv_obj_t * prev_btn)
if(btn == NULL) return NULL;
while(btn->signal_func != lv_list_btn_signal) {
btn = lv_obj_get_child_back(scrl, prev_btn);
btn = lv_obj_get_child_back(scrl, btn);
if(btn == NULL) break;
}

View File

@ -276,6 +276,8 @@ void lv_mbox_set_style(lv_obj_t * mbox, lv_mbox_style_t type, lv_style_t * style
break;
}
mbox_realign(mbox);
}

View File

@ -136,6 +136,13 @@ static void basic_init(void)
}
static void cont_init(void)
{
#if USE_LV_CONT != 0
theme.cont = &panel;
#endif
}
static void btn_init(void)
{
#if USE_LV_BTN != 0
@ -785,6 +792,7 @@ lv_theme_t * lv_theme_alien_init(uint16_t hue, lv_font_t * font)
}
basic_init();
cont_init();
btn_init();
label_init();
bar_init();