Home
last modified time | relevance | path

Searched refs:style_indicator (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/examples/widgets/slider/
Dlv_example_slider_2.c15 static lv_style_t style_indicator; in lv_example_slider_2() local
24 lv_style_init(&style_indicator); in lv_example_slider_2()
25 lv_style_set_bg_opa(&style_indicator, LV_OPA_COVER); in lv_example_slider_2()
26 lv_style_set_bg_color(&style_indicator, lv_palette_main(LV_PALETTE_CYAN)); in lv_example_slider_2()
27 lv_style_set_radius(&style_indicator, LV_RADIUS_CIRCLE); in lv_example_slider_2()
28 lv_style_set_transition(&style_indicator, &transition_dsc); in lv_example_slider_2()
47 lv_obj_add_style(slider, &style_indicator, LV_PART_INDICATOR); in lv_example_slider_2()
Dlv_example_slider_2.py10 style_indicator = lv.style_t() variable
19 style_indicator.init()
20 style_indicator.set_bg_opa(lv.OPA.COVER)
21 style_indicator.set_bg_color(lv.palette_main(lv.PALETTE.CYAN))
22 style_indicator.set_radius(lv.RADIUS.CIRCLE)
23 style_indicator.set_transition(transition_dsc)
42 slider.add_style(style_indicator, lv.PART.INDICATOR)