material theme: simplify line chart's default style
This commit is contained in:
@@ -462,10 +462,6 @@ static void chart_init(void)
|
||||
lv_style_set_size(&chart_series, LV_STATE_DEFAULT, 2);
|
||||
lv_style_set_pad_inner(&chart_series, LV_STATE_DEFAULT, 2);
|
||||
lv_style_set_radius(&chart_series, LV_STATE_DEFAULT, 1);
|
||||
lv_style_set_bg_opa(&chart_series, LV_STATE_DEFAULT, LV_OPA_COVER);
|
||||
lv_style_set_bg_grad_dir(&chart_series, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
|
||||
lv_style_set_bg_main_stop(&chart_series, LV_STATE_DEFAULT, 96);
|
||||
lv_style_set_bg_grad_stop(&chart_series, LV_STATE_DEFAULT, 0);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -933,6 +933,7 @@ static void draw_series_column(lv_obj_t * chart, const lv_area_t * series_area,
|
||||
lv_draw_rect_dsc_init(&col_dsc);
|
||||
lv_obj_init_draw_rect_dsc(chart, LV_CHART_PART_SERIES, &col_dsc);
|
||||
col_dsc.bg_grad_dir = LV_GRAD_DIR_NONE;
|
||||
col_dsc.bg_opa = LV_OPA_COVER;
|
||||
|
||||
/*Make the cols longer with `radius` to clip the rounding from the bottom*/
|
||||
col_a.y2 = series_area->y2 + col_dsc.radius;
|
||||
|
||||
Reference in New Issue
Block a user