feat(color): use colors from material design
Use function instead of color macros
This commit is contained in:
@@ -12,10 +12,10 @@ void lv_example_style_2(void)
|
||||
/*Set a background color and a radius*/
|
||||
lv_style_set_radius(&style, 10);
|
||||
lv_style_set_bg_opa(&style, LV_OPA_COVER);
|
||||
lv_style_set_bg_color(&style, LV_COLOR_SILVER);
|
||||
lv_style_set_bg_color(&style, lv_color_grey_lighten_3());
|
||||
|
||||
/*Add border to the bottom+right*/
|
||||
lv_style_set_border_color(&style, LV_COLOR_BLUE);
|
||||
lv_style_set_border_color(&style, lv_color_blue());
|
||||
lv_style_set_border_width(&style, 5);
|
||||
lv_style_set_border_opa(&style, LV_OPA_50);
|
||||
lv_style_set_border_side(&style, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT);
|
||||
|
||||
Reference in New Issue
Block a user