BigW Consortium Gitlab

Commit ecc8c8af by Gabor

lv_label: draw background if the style explictly set

parent 0c45e9ea
......@@ -524,6 +524,11 @@ static bool lv_label_design(lv_obj_t * label, const area_t * mask, lv_design_mod
}
#endif
/*If the style is set explicitly draw background too*/
if(label->style_p != NULL) {
lv_draw_rect(&cords, mask, style);
}
/*TEST: draw a background for the label*/
//lv_vfill(&label->cords, mask, COLOR_LIME, OPA_COVER);
......
......@@ -166,7 +166,6 @@ bool lv_ta_signal(lv_obj_t * ta, lv_signal_t sign, void * param)
/* (The created label will be deleted automatically) */
} else if(sign == LV_SIGNAL_STYLE_CHG) {
if(ext->label) {
lv_obj_set_style(ext->label, lv_obj_get_style(ext->page.scrl));
lv_obj_set_width(ext->label, lv_obj_get_width(ta) - 2 *
(style->hpad + style->hpad));
lv_label_set_text(ext->label, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment