feat(color): use colors from material design
Use function instead of color macros
This commit is contained in:
@@ -19,12 +19,12 @@ void lv_example_bar_3(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_RED);
|
||||
lv_style_set_bg_grad_color(&style_indic, LV_COLOR_BLUE);
|
||||
lv_style_set_bg_color(&style_indic, lv_color_red());
|
||||
lv_style_set_bg_grad_color(&style_indic, lv_color_blue());
|
||||
lv_style_set_bg_grad_dir(&style_indic, LV_GRAD_DIR_VER);
|
||||
lv_style_set_content_align(&style_indic, LV_ALIGN_OUT_LEFT_TOP);
|
||||
lv_style_set_content_ofs_x(&style_indic, -3);
|
||||
lv_style_set_content_color(&style_indic, LV_COLOR_GRAY);
|
||||
lv_style_set_content_color(&style_indic, lv_color_grey());
|
||||
|
||||
lv_obj_t * bar = lv_bar_create(lv_scr_act(), NULL);
|
||||
lv_obj_add_style(bar, LV_PART_INDICATOR, LV_STATE_DEFAULT, &style_indic);
|
||||
|
||||
Reference in New Issue
Block a user