Lines Matching refs:style
10 static lv_style_t style; in lv_example_btn_2() local
11 lv_style_init(&style); in lv_example_btn_2()
13 lv_style_set_radius(&style, 3); in lv_example_btn_2()
15 lv_style_set_bg_opa(&style, LV_OPA_100); in lv_example_btn_2()
16 lv_style_set_bg_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_btn_2()
17 lv_style_set_bg_grad_color(&style, lv_palette_darken(LV_PALETTE_BLUE, 2)); in lv_example_btn_2()
18 lv_style_set_bg_grad_dir(&style, LV_GRAD_DIR_VER); in lv_example_btn_2()
20 lv_style_set_border_opa(&style, LV_OPA_40); in lv_example_btn_2()
21 lv_style_set_border_width(&style, 2); in lv_example_btn_2()
22 lv_style_set_border_color(&style, lv_palette_main(LV_PALETTE_GREY)); in lv_example_btn_2()
24 lv_style_set_shadow_width(&style, 8); in lv_example_btn_2()
25 lv_style_set_shadow_color(&style, lv_palette_main(LV_PALETTE_GREY)); in lv_example_btn_2()
26 lv_style_set_shadow_ofs_y(&style, 8); in lv_example_btn_2()
28 lv_style_set_outline_opa(&style, LV_OPA_COVER); in lv_example_btn_2()
29 lv_style_set_outline_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_btn_2()
31 lv_style_set_text_color(&style, lv_color_white()); in lv_example_btn_2()
32 lv_style_set_pad_all(&style, 10); in lv_example_btn_2()
56 lv_obj_add_style(btn1, &style, 0); in lv_example_btn_2()