Home
last modified time | relevance | path

Searched refs:style_bg (Results 1 – 4 of 4) sorted by relevance

/lvgl-3.7.0/examples/widgets/bar/
Dlv_example_bar_2.c9 static lv_style_t style_bg; in lv_example_bar_2() local
12 lv_style_init(&style_bg); in lv_example_bar_2()
13 lv_style_set_border_color(&style_bg, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_bar_2()
14 lv_style_set_border_width(&style_bg, 2); in lv_example_bar_2()
15 lv_style_set_pad_all(&style_bg, 6); /*To make the indicator smaller*/ in lv_example_bar_2()
16 lv_style_set_radius(&style_bg, 6); in lv_example_bar_2()
17 lv_style_set_anim_time(&style_bg, 1000); in lv_example_bar_2()
26 lv_obj_add_style(bar, &style_bg, 0); in lv_example_bar_2()
Dlv_example_bar_2.py4 style_bg = lv.style_t() variable
7 style_bg.init()
8 style_bg.set_border_color(lv.palette_main(lv.PALETTE.BLUE))
9 style_bg.set_border_width(2)
10 style_bg.set_pad_all(6) # To make the indicator smaller
11 style_bg.set_radius(6)
12 style_bg.set_anim_time(1000)
21 bar.add_style(style_bg, 0)
/lvgl-3.7.0/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_3.c29 static lv_style_t style_bg; in lv_example_btnmatrix_3() local
30 lv_style_init(&style_bg); in lv_example_btnmatrix_3()
31 lv_style_set_pad_all(&style_bg, 0); in lv_example_btnmatrix_3()
32 lv_style_set_pad_gap(&style_bg, 0); in lv_example_btnmatrix_3()
33 lv_style_set_clip_corner(&style_bg, true); in lv_example_btnmatrix_3()
34 lv_style_set_radius(&style_bg, LV_RADIUS_CIRCLE); in lv_example_btnmatrix_3()
35 lv_style_set_border_width(&style_bg, 0); in lv_example_btnmatrix_3()
50 lv_obj_add_style(btnm, &style_bg, 0); in lv_example_btnmatrix_3()
Dlv_example_btnmatrix_3.py28 style_bg = lv.style_t() variable
29 style_bg.init()
30 style_bg.set_pad_all(0)
31 style_bg.set_pad_gap(0)
32 style_bg.set_clip_corner(True)
33 style_bg.set_radius(lv.RADIUS.CIRCLE)
34 style_bg.set_border_width(0)
50 btnm.add_style(style_bg, 0)