From 3664f353640dfdb198aa21c9d020d600cf549bd7 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 2 Jan 2024 07:29:14 +0100 Subject: [PATCH] feat(style): add length style property (#5135) --- docs/overview/style-props.md | 23 +++++++++++++++------- scripts/style_api_gen.py | 4 ++++ src/core/lv_obj_style_gen.c | 16 +++++++++++---- src/core/lv_obj_style_gen.h | 38 +++++++++++++++++++++++++----------- src/misc/lv_style.c | 1 + src/misc/lv_style.h | 1 + src/misc/lv_style_gen.c | 10 ++++++++++ src/misc/lv_style_gen.h | 7 +++++++ 8 files changed, 78 insertions(+), 22 deletions(-) diff --git a/docs/overview/style-props.md b/docs/overview/style-props.md index ba8af602e1..6811e491f8 100644 --- a/docs/overview/style-props.md +++ b/docs/overview/style-props.md @@ -57,6 +57,15 @@ Sets a maximal height. Pixel and percentage values can be used. Percentage value
  • Ext. draw No
  • +### length +Its meaning depends on the type of the widget. For example in case of lv_scale it means the length of the ticks. + + ### x Set the X coordinate of the object considering the set `align`. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.