aboutsummaryrefslogtreecommitdiff
path: root/scripts/style_api_gen.py
diff options
context:
space:
mode:
author_VIFEXTech <vifextech@foxmail.com>2023-08-14 13:57:19 +0800
committerGitHub <noreply@github.com>2023-08-14 07:57:19 +0200
commit9a483c87bfec48fa4f84f2e5ef4b4a4b7d2a95fd (patch)
tree16579190fc853acaaaf926afbaab9605fb8c0824 /scripts/style_api_gen.py
parent7f5e24771e7c152cae1efbd57f30c822704c1973 (diff)
downloadlvgl-9a483c87bfec48fa4f84f2e5ef4b4a4b7d2a95fd.tar.gz
lvgl-9a483c87bfec48fa4f84f2e5ef4b4a4b7d2a95fd.zip
feat(layer): add more efficient widget translucent mode (#4415)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Diffstat (limited to 'scripts/style_api_gen.py')
-rwxr-xr-xscripts/style_api_gen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/style_api_gen.py b/scripts/style_api_gen.py
index 2fbf8dcb8..1f22af430 100755
--- a/scripts/style_api_gen.py
+++ b/scripts/style_api_gen.py
@@ -333,6 +333,10 @@ props = [
'style_type': 'num', 'var_type': 'lv_opa_t', 'default':'`LV_OPA_COVER`', 'inherited': 1, 'layout': 0, 'ext_draw': 0,
'dsc': "Scale down all opacity values of the object by this factor. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency." },
+{'name': 'OPA_LAYERED',
+ 'style_type': 'num', 'var_type': 'lv_opa_t', 'default':'`LV_OPA_COVER`', 'inherited': 1, 'layout': 0, 'ext_draw': 0,
+ 'dsc': "First draw the object on the layer, then scale down layer opacity factor. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency." },
+
{'name': 'COLOR_FILTER_DSC',
'style_type': 'ptr', 'var_type': 'const lv_color_filter_dsc_t *', 'default':'`NULL`', 'inherited': 0, 'layout': 0, 'ext_draw': 0,
'dsc': "Mix a color to all colors of the object." },