feat(color): use colors from material design
Use function instead of color macros
This commit is contained in:
@@ -12,11 +12,11 @@ void lv_example_style_4(void)
|
||||
/*Set a background color and a radius*/
|
||||
lv_style_set_radius(&style, 5);
|
||||
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 a shadow*/
|
||||
lv_style_set_shadow_width(&style, 8);
|
||||
lv_style_set_shadow_color(&style, LV_COLOR_BLUE);
|
||||
lv_style_set_shadow_color(&style, lv_color_blue());
|
||||
lv_style_set_shadow_ofs_x(&style, 10);
|
||||
lv_style_set_shadow_ofs_y(&style, 20);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user