Lines Matching refs:lv
5 props = [lv.STYLE.BG_COLOR, 0]
6 transition_dsc = lv.style_transition_dsc_t()
7 transition_dsc.init(props, lv.anim_t.path_linear, 300, 0, None)
9 style_main = lv.style_t()
10 style_indicator = lv.style_t()
11 style_knob = lv.style_t()
12 style_pressed_color = lv.style_t()
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)
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)
26 style_knob.set_bg_opa(lv.OPA.COVER)
27 style_knob.set_bg_color(lv.palette_main(lv.PALETTE.CYAN))
28 style_knob.set_border_color(lv.palette_darken(lv.PALETTE.CYAN, 3))
30 style_knob.set_radius(lv.RADIUS.CIRCLE)
35 style_pressed_color.set_bg_color(lv.palette_darken(lv.PALETTE.CYAN, 2))
38 slider = lv.slider(lv.scr_act())
41 slider.add_style(style_main, lv.PART.MAIN)
42 slider.add_style(style_indicator, lv.PART.INDICATOR)
43 slider.add_style(style_pressed_color, lv.PART.INDICATOR | lv.STATE.PRESSED)
44 slider.add_style(style_knob, lv.PART.KNOB)
45 slider.add_style(style_pressed_color, lv.PART.KNOB | lv.STATE.PRESSED)