From 90ae34ad3cedc875f18c8d5c7d66ae83b2941ded Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 25 Oct 2023 13:44:27 +0200 Subject: [PATCH] chore: format code --- demos/render/lv_demo_render.c | 37 ++++++++++++++++------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/demos/render/lv_demo_render.c b/demos/render/lv_demo_render.c index 6fcf0ab67..a3b09dcb4 100644 --- a/demos/render/lv_demo_render.c +++ b/demos/render/lv_demo_render.c @@ -49,7 +49,7 @@ static lv_obj_t * fill_obj_create(lv_obj_t * parent, lv_coord_t col, lv_coord_t lv_color_hex3(0xff0), lv_color_hex3(0x0ff), lv_color_hex3(0xf0f), - }; + }; lv_obj_t * obj = lv_obj_create(parent); lv_obj_remove_style_all(obj); @@ -133,22 +133,22 @@ static lv_obj_t * border_obj_create(lv_obj_t * parent, lv_coord_t col, lv_coord_ static void border_cb(lv_obj_t * parent) { lv_border_side_t sides[] = { - LV_BORDER_SIDE_NONE, - LV_BORDER_SIDE_FULL, - LV_BORDER_SIDE_LEFT, - LV_BORDER_SIDE_RIGHT, - LV_BORDER_SIDE_TOP, - LV_BORDER_SIDE_BOTTOM, - LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_RIGHT, - LV_BORDER_SIDE_RIGHT | LV_BORDER_SIDE_BOTTOM, - LV_BORDER_SIDE_LEFT| LV_BORDER_SIDE_BOTTOM, - LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_TOP, - LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_RIGHT, - LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_BOTTOM, - LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_RIGHT | LV_BORDER_SIDE_BOTTOM, - LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_TOP, - LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_RIGHT | LV_BORDER_SIDE_TOP, - LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT | LV_BORDER_SIDE_TOP, + LV_BORDER_SIDE_NONE, + LV_BORDER_SIDE_FULL, + LV_BORDER_SIDE_LEFT, + LV_BORDER_SIDE_RIGHT, + LV_BORDER_SIDE_TOP, + LV_BORDER_SIDE_BOTTOM, + LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_RIGHT, + LV_BORDER_SIDE_RIGHT | LV_BORDER_SIDE_BOTTOM, + LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_BOTTOM, + LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_TOP, + LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_RIGHT, + LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_BOTTOM, + LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_RIGHT | LV_BORDER_SIDE_BOTTOM, + LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_TOP, + LV_BORDER_SIDE_LEFT | LV_BORDER_SIDE_RIGHT | LV_BORDER_SIDE_TOP, + LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT | LV_BORDER_SIDE_TOP, }; uint32_t i; @@ -214,9 +214,6 @@ static void border_cb(lv_obj_t * parent) /********************** * STATIC VARIABLES **********************/ -//fill (radius + gradient too) -//border (each sides + radius) -//outline (radius) //box shadow (offset, size, spread) //text (normal text + underline/strike through, placeholder) //triangle (just some rectangles)