feat(color): use colors from material design
Use function instead of color macros
This commit is contained in:
@@ -10,7 +10,7 @@ void lv_example_bar_2(void)
|
||||
static lv_style_t style_indic;
|
||||
|
||||
lv_style_init(&style_bg);
|
||||
lv_style_set_border_color(&style_bg, LV_COLOR_BLUE);
|
||||
lv_style_set_border_color(&style_bg, lv_color_blue());
|
||||
lv_style_set_border_width(&style_bg, 2);
|
||||
lv_style_set_pad_all(&style_bg, 6); /*To make the indicator smaller*/
|
||||
lv_style_set_radius(&style_bg, 6);
|
||||
@@ -18,7 +18,7 @@ void lv_example_bar_2(void)
|
||||
|
||||
lv_style_init(&style_indic);
|
||||
lv_style_set_bg_opa(&style_indic, LV_OPA_COVER);
|
||||
lv_style_set_bg_color(&style_indic, LV_COLOR_BLUE);
|
||||
lv_style_set_bg_color(&style_indic, lv_color_blue());
|
||||
lv_style_set_radius(&style_indic, 3);
|
||||
|
||||
lv_obj_t * bar = lv_bar_create(lv_scr_act(), NULL);
|
||||
|
||||
Reference in New Issue
Block a user