Description
I want to have OSD on my video with rk3588 processor. I have linked the lvgl to my program and every thing work correctly but when I transparent the background of my lvgl main object the labels and button make shadow like below image
but when I use normal background without Opacity , it shown fine
How can I have the second picture’s elements with background Opacity 0?
I have changed LV_COLOR_MIX_ROUND_OFS
but it doesn’t has any effect.
LVGL version → 8.3.11
lv_conf.c
#define LV_COLOR_DEPTH 32
#define LV_COLOR_16_SWAP 0
#define LV_COLOR_SCREEN_TRANSP 1
#define LV_COLOR_MIX_ROUND_OFS 0
#define LV_COLOR_CHROMA_KEY lv_color_hex(0x00ff00)
code to transparent main object background
lv_obj_t *obj = lv_obj_create(0);
objects.main = obj;
lv_obj_set_pos(obj, 0, 0);
lv_obj_set_size(obj, 1920, 1080);
lv_obj_clear_flag(obj, LV_OBJ_FLAG_SCROLLABLE);
lv_obj_set_style_bg_opa(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);