From 1375ea85a16f0a14c259b14c50e7e8f7418ea8fe Mon Sep 17 00:00:00 2001 From: Xiaosheng An <36487580+ONLYA@users.noreply.github.com> Date: Thu, 31 Aug 2023 23:25:25 +0100 Subject: [PATCH] Update screen object opacity function documentation (#4505) --- docs/overview/display.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/overview/display.md b/docs/overview/display.md index b756b77ea..4626a5696 100644 --- a/docs/overview/display.md +++ b/docs/overview/display.md @@ -67,7 +67,7 @@ The Alpha channel of 32-bit colors will be 0 where there are no objects and 255 In summary, to enable transparent screens and displays for OSD menu-like UIs: - Enable `LV_COLOR_SCREEN_TRANSP` in `lv_conf.h` -- Set the screen's opacity to `LV_OPA_TRANSP` e.g. with `lv_obj_set_style_local_bg_opa(lv_scr_act(), LV_OBJMASK_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_TRANSP)` +- Set the screen's opacity to `LV_OPA_TRANSP` e.g. with `lv_obj_set_style_bg_opa(lv_scr_act(), LV_OPA_TRANSP, LV_PART_MAIN)` - Set the display opacity to `LV_OPA_TRANSP` with `lv_disp_set_bg_opa(NULL, LV_OPA_TRANSP);` ## Features of displays