From 9a48de0f8b19ec02a44aaf6b330066eed7d0a105 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Thu, 9 Jun 2022 20:20:34 -0400 Subject: [PATCH] feat(style) add 'inherit' and 'initial' CSS properties (#3390) Fixes #3086 --- docs/overview/style-props.md | 12 +- docs/overview/style.md | 17 +++ src/core/lv_obj.c | 2 +- src/core/lv_obj_style.c | 54 ++++++--- src/core/lv_obj_style.h | 7 +- src/core/lv_obj_style_gen.c | 6 +- src/core/lv_obj_style_gen.h | 27 ++--- src/misc/lv_style.c | 194 ++++++++++++++++++------------ src/misc/lv_style.h | 132 ++++++++++++-------- tests/src/test_cases/test_style.c | 36 ++++++ 10 files changed, 312 insertions(+), 175 deletions(-) diff --git a/docs/overview/style-props.md b/docs/overview/style-props.md index e22697573..74a0cd5fa 100644 --- a/docs/overview/style-props.md +++ b/docs/overview/style-props.md @@ -385,7 +385,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 *`).