From 8ac93ad8834fe2be11beb8d28f5a0b2fb3f986c6 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Mon, 7 Mar 2022 10:01:25 -0500 Subject: [PATCH] refactor(style) move flag information into a dedicated table (#3102) --- docs/overview/style-props.md | 12 +- scripts/code-format.cfg | 4 + scripts/style_api_gen.py | 63 +++----- src/core/lv_obj_style.c | 45 +++--- src/core/lv_obj_style.h | 5 + src/core/lv_obj_style_gen.c | 86 +---------- src/core/lv_obj_style_gen.h | 39 ++--- src/extra/layouts/flex/lv_flex.c | 8 +- src/extra/layouts/grid/lv_grid.c | 22 +-- src/misc/lv_gc.h | 3 +- src/misc/lv_style.c | 145 ++++++++++++++++++- src/misc/lv_style.h | 230 ++++++++++++++++-------------- src/misc/lv_style_gen.c | 80 ----------- src/misc/lv_style_gen.h | 60 -------- tests/src/test_cases/test_style.c | 30 ++++ 15 files changed, 384 insertions(+), 448 deletions(-) diff --git a/docs/overview/style-props.md b/docs/overview/style-props.md index bef42e50f221..ed924ee99a53 100644 --- a/docs/overview/style-props.md +++ b/docs/overview/style-props.md @@ -367,7 +367,7 @@ Sets whether the border should be drawn before or after the children are drawn. Properties to describe the outline. It's like a border but drawn outside of the rectangles. ### outline_width -Set the width of the outline in pixels. +Set the width of the outline in pixels. ### shadow_ofs_x -Set an offset on the shadow in pixels in X direction. +Set an offset on the shadow in pixels in X direction. ### shadow_ofs_y -Set an offset on the shadow in pixels in Y direction. +Set an offset on the shadow in pixels in Y direction. ### line_rounded -Make the end points of the lines rounded. `true`: rounded, `false`: perpendicular line ending +Make the end points of the lines rounded. `true`: rounded, `false`: perpendicular line ending ### arc_rounded -Make the end points of the arcs rounded. `true`: rounded, `false`: perpendicular line ending +Make the end points of the arcs rounded. `true`: rounded, `false`: perpendicular line ending ### text_font -Set the font of the text (a pointer `lv_font_t *`). +Set the font of the text (a pointer `lv_font_t *`).