diff --git a/demos/music/lv_demo_music_main.c b/demos/music/lv_demo_music_main.c index 2e84ceed2..d7a6855aa 100644 --- a/demos/music/lv_demo_music_main.c +++ b/demos/music/lv_demo_music_main.c @@ -605,7 +605,7 @@ static lv_obj_t * create_ctrl_box(lv_obj_t * parent) LV_IMAGE_DECLARE(img_lv_demo_music_slider_knob); slider_obj = lv_slider_create(cont); - lv_obj_set_style_anim_time(slider_obj, 100, 0); + lv_obj_set_style_anim_duration(slider_obj, 100, 0); lv_obj_add_flag(slider_obj, LV_OBJ_FLAG_CLICKABLE); /*No input from the slider*/ #if LV_DEMO_MUSIC_LARGE == 0 diff --git a/demos/stress/lv_demo_stress.c b/demos/stress/lv_demo_stress.c index 1c36f479c..c4c2da677 100644 --- a/demos/stress/lv_demo_stress.c +++ b/demos/stress/lv_demo_stress.c @@ -165,7 +165,7 @@ static void obj_test_task_cb(lv_timer_t * tmr) auto_delete(obj, LV_DEMO_STRESS_TIME_STEP * 2 + 70); obj = lv_slider_create(main_page); - lv_obj_set_style_anim_time(obj, LV_DEMO_STRESS_TIME_STEP * 8, 0); + lv_obj_set_style_anim_duration(obj, LV_DEMO_STRESS_TIME_STEP * 8, 0); lv_slider_set_value(obj, 5000, LV_ANIM_ON); /*Animate to out of range value*/ auto_delete(obj, LV_DEMO_STRESS_TIME_STEP * 5 + 22); diff --git a/docs/overview/style-props.md b/docs/overview/style-props.md index 696624a26..c7a90882b 100644 --- a/docs/overview/style-props.md +++ b/docs/overview/style-props.md @@ -253,7 +253,7 @@ Sets the padding between the columns. Used by the layouts. Properties to describe spacing around an object. Very similar to the margin properties in HTML. ### margin_top -Sets the margin on the top. The object will keep this space from its siblings in layouts. +Sets the margin on the top. The object will keep this space from its siblings in layouts.