Home
last modified time | relevance | path

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

/lvgl-3.7.0/examples/widgets/slider/
Dlv_example_slider_2.c14 static lv_style_t style_main; in lv_example_slider_2() local
18 lv_style_init(&style_main); in lv_example_slider_2()
19 lv_style_set_bg_opa(&style_main, LV_OPA_COVER); in lv_example_slider_2()
20 lv_style_set_bg_color(&style_main, lv_color_hex3(0xbbb)); in lv_example_slider_2()
21 lv_style_set_radius(&style_main, LV_RADIUS_CIRCLE); in lv_example_slider_2()
22 lv_style_set_pad_ver(&style_main, -2); /*Makes the indicator larger*/ in lv_example_slider_2()
46 lv_obj_add_style(slider, &style_main, LV_PART_MAIN); in lv_example_slider_2()
Dlv_example_slider_2.py9 style_main = lv.style_t() variable
13 style_main.init()
14 style_main.set_bg_opa(lv.OPA.COVER)
15 style_main.set_bg_color(lv.color_hex3(0xbbb))
16 style_main.set_radius(lv.RADIUS.CIRCLE)
17 style_main.set_pad_ver(-2) # Makes the indicator larger
41 slider.add_style(style_main, lv.PART.MAIN)