Description
Hi, @kisvegabor @embeddedt
I’m now current using LVGL 8.2 and would like to upgrade to LVGL 8.3
I’m using the same setting (code) to draw text, but now it somehow has black background (as figure below)
I’ve try setting bg_opa, but there is no any effect. (LV_COLOR_DEPTH 32)
Could anyone help?
I would be very grateful.
What LVGL version are you using?
8.3
What do you want to achieve?
draw lv_label text without black background. (transparent background)
What have you tried so far?
I’ve tried below style, but nothing help.
lv_obj_set_style_bg_opa(label, 0U, LV_PART_MAIN);
lv_obj_set_style_color_filter_opa(label, 0U, LV_PART_MAIN);
lv_obj_set_style_bg_img_opa(label, 0U, LV_PART_MAIN);
lv_obj_set_style_bg_img_recolor_opa(label, 0U, LV_PART_MAIN);
lv_obj_set_style_border_opa(label, 0U, LV_PART_MAIN);
lv_obj_set_style_outline_opa(label, 0U, LV_PART_MAIN);
lv_obj_set_style_shadow_opa(label, 0U, LV_PART_MAIN);
lv_obj_set_style_img_recolor_opa(label, 0U, LV_PART_MAIN);
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
lv_obj_t * label;
lv_color_t label_color;
label_color.full = Color;
label = lv_label_create(...);
lv_obj_add_style(label,&fontStyle_Big, LV_PART_MAIN);
lv_label_set_text(label,pString);
lv_obj_set_pos(label,(lv_coord_t)Xstart,(lv_coord_t)Ystart);
lv_obj_set_style_text_color(label,label_color, LV_PART_MAIN);
//lv_obj_set_style_bg_opa(label, 0U, LV_PART_MAIN);