mirror of https://github.com/arendst/Tasmota.git
Merge pull request #13568 from s-hadinger/lvgl_screen_bg
LVGL set screen background to black
This commit is contained in:
commit
14165e8d92
|
@ -401,6 +401,9 @@ void start_lvgl(const char * uconfig) {
|
|||
// Set the default background color of the display
|
||||
// This is normally overriden by an opaque screen on top
|
||||
#ifdef USE_BERRY
|
||||
// By default set the display color to black and opacity to 100%
|
||||
lv_disp_set_bg_color(NULL, lv_color_from_uint32(USE_LVGL_BG_DEFAULT));
|
||||
lv_disp_set_bg_opa(NULL, LV_OPA_COVER);
|
||||
lv_obj_set_style_bg_color(lv_scr_act(), lv_color_from_uint32(USE_LVGL_BG_DEFAULT), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(lv_scr_act(), LV_OPA_COVER, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
|
||||
|
|
Loading…
Reference in New Issue