Searched refs:style_pressed_color (Results 1 – 2 of 2) sorted by relevance
17 static lv_style_t style_pressed_color; in lv_example_slider_2() local39 lv_style_init(&style_pressed_color); in lv_example_slider_2()40 lv_style_set_bg_color(&style_pressed_color, lv_palette_darken(LV_PALETTE_CYAN, 2)); in lv_example_slider_2()48 lv_obj_add_style(slider, &style_pressed_color, LV_PART_INDICATOR | LV_STATE_PRESSED); in lv_example_slider_2()50 lv_obj_add_style(slider, &style_pressed_color, LV_PART_KNOB | LV_STATE_PRESSED); in lv_example_slider_2()
12 style_pressed_color = lv.style_t() variable34 style_pressed_color.init()35 style_pressed_color.set_bg_color(lv.palette_darken(lv.PALETTE.CYAN, 2))43 slider.add_style(style_pressed_color, lv.PART.INDICATOR | lv.STATE.PRESSED)45 slider.add_style(style_pressed_color, lv.PART.KNOB | lv.STATE.PRESSED)