mirror of
https://github.com/lvgl/lvgl.git
synced 2026-09-27 18:34:13 +08:00
feat(dropshadow): add drop shadow support (#9331)
Co-authored-by: André Costa <andre_miguel_costa@hotmail.com>
This commit is contained in:
co-authored by
André Costa
parent
918e480c66
commit
bb3233b794
@@ -27,6 +27,11 @@ void lv_example_chart_1(void)
|
||||
ser2_y_points[i] = (int32_t)lv_rand(50, 90);
|
||||
}
|
||||
|
||||
lv_obj_set_style_drop_shadow_opa(chart, 255, LV_PART_ITEMS);
|
||||
lv_obj_set_style_drop_shadow_offset_x(chart, 0, LV_PART_ITEMS);
|
||||
lv_obj_set_style_drop_shadow_radius(chart, 20, LV_PART_ITEMS);
|
||||
/* Drop shadow color follows each series color automatically,
|
||||
* so no manual override is needed. */
|
||||
lv_chart_refresh(chart); /*Required after direct set*/
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user