Searched refs:style_pr (Results 1 – 8 of 8) sorted by relevance
/lvgl-3.7.0/examples/widgets/btn/ |
D | lv_example_btn_2.c | 35 static lv_style_t style_pr; in lv_example_btn_2() local 36 lv_style_init(&style_pr); in lv_example_btn_2() 39 lv_style_set_outline_width(&style_pr, 30); in lv_example_btn_2() 40 lv_style_set_outline_opa(&style_pr, LV_OPA_TRANSP); in lv_example_btn_2() 42 lv_style_set_translate_y(&style_pr, 5); in lv_example_btn_2() 43 lv_style_set_shadow_ofs_y(&style_pr, 3); in lv_example_btn_2() 44 lv_style_set_bg_color(&style_pr, lv_palette_darken(LV_PALETTE_BLUE, 2)); in lv_example_btn_2() 45 lv_style_set_bg_grad_color(&style_pr, lv_palette_darken(LV_PALETTE_BLUE, 4)); in lv_example_btn_2() 52 lv_style_set_transition(&style_pr, &trans); in lv_example_btn_2() 57 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_btn_2()
|
D | lv_example_btn_3.c | 30 static lv_style_t style_pr; in lv_example_btn_3() local 31 lv_style_init(&style_pr); in lv_example_btn_3() 32 lv_style_set_transform_width(&style_pr, 10); in lv_example_btn_3() 33 lv_style_set_transform_height(&style_pr, -10); in lv_example_btn_3() 34 lv_style_set_text_letter_space(&style_pr, 10); in lv_example_btn_3() 35 lv_style_set_transition(&style_pr, &transition_dsc_pr); in lv_example_btn_3() 39 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_btn_3()
|
D | lv_example_btn_2.py | 31 style_pr = lv.style_t() variable 32 style_pr.init() 35 style_pr.set_outline_width(30) 36 style_pr.set_outline_opa(lv.OPA.TRANSP) 38 style_pr.set_translate_y(5) 39 style_pr.set_shadow_ofs_y(3) 40 style_pr.set_bg_color(lv.palette_darken(lv.PALETTE.BLUE, 2)) 41 style_pr.set_bg_grad_color(lv.palette_darken(lv.PALETTE.BLUE, 4)) 48 style_pr.set_transition(trans) 53 btn1.add_style(style_pr, lv.STATE.PRESSED)
|
D | lv_example_btn_3.py | 24 style_pr = lv.style_t() variable 25 style_pr.init() 26 style_pr.set_transform_width(10) 27 style_pr.set_transform_height(-10) 28 style_pr.set_text_letter_space(10) 29 style_pr.set_transition(transition_dsc_pr) 33 btn1.add_style(style_pr, lv.STATE.PRESSED)
|
/lvgl-3.7.0/examples/styles/ |
D | lv_example_style_10.c | 25 static lv_style_t style_pr; in lv_example_style_10() local 26 lv_style_init(&style_pr); in lv_example_style_10() 27 lv_style_set_bg_color(&style_pr, lv_palette_main(LV_PALETTE_RED)); in lv_example_style_10() 28 lv_style_set_border_width(&style_pr, 6); in lv_example_style_10() 29 lv_style_set_border_color(&style_pr, lv_palette_darken(LV_PALETTE_RED, 3)); in lv_example_style_10() 30 lv_style_set_transition(&style_pr, &trans_pr); in lv_example_style_10() 35 lv_obj_add_style(obj, &style_pr, LV_STATE_PRESSED); in lv_example_style_10()
|
D | lv_example_style_10.py | 23 style_pr = lv.style_t() variable 24 style_pr.init() 25 style_pr.set_bg_color(lv.palette_main(lv.PALETTE.RED)) 26 style_pr.set_border_width(6) 27 style_pr.set_border_color(lv.palette_darken(lv.PALETTE.RED, 3)) 28 style_pr.set_transition(trans_pr) 33 obj.add_style(style_pr, lv.STATE.PRESSED)
|
/lvgl-3.7.0/examples/widgets/imgbtn/ |
D | lv_example_imgbtn_1.c | 21 static lv_style_t style_pr; in lv_example_imgbtn_1() local 22 lv_style_init(&style_pr); in lv_example_imgbtn_1() 23 lv_style_set_img_recolor_opa(&style_pr, LV_OPA_30); in lv_example_imgbtn_1() 24 lv_style_set_img_recolor(&style_pr, lv_color_black()); in lv_example_imgbtn_1() 25 lv_style_set_transform_width(&style_pr, 20); in lv_example_imgbtn_1() 31 lv_obj_add_style(imgbtn1, &style_pr, LV_STATE_PRESSED); in lv_example_imgbtn_1()
|
D | lv_example_imgbtn_1.py | 56 style_pr = lv.style_t() variable 57 style_pr.init() 58 style_pr.set_img_recolor_opa(lv.OPA._30) 59 style_pr.set_img_recolor(lv.color_black()) 60 style_pr.set_transform_width(20) 66 imgbtn1.add_style(style_pr, lv.STATE.PRESSED)
|