Lines Matching refs:btn
38 lv_obj_t * btn; in lv_example_style_18() local
42 btn = lv_button_create(lv_screen_active()); in lv_example_style_18()
43 lv_obj_set_style_bg_color(btn, grad_colors[0], 0); in lv_example_style_18()
44 lv_obj_set_style_bg_grad_color(btn, grad_colors[1], 0); in lv_example_style_18()
45 lv_obj_set_style_bg_grad_dir(btn, LV_GRAD_DIR_HOR, 0); in lv_example_style_18()
46 lv_obj_set_size(btn, 150, 50); in lv_example_style_18()
47 lv_obj_align(btn, LV_ALIGN_CENTER, 0, -100); in lv_example_style_18()
49 label = lv_label_create(btn); in lv_example_style_18()
54 btn = lv_button_create(lv_screen_active()); in lv_example_style_18()
55 lv_obj_set_style_bg_color(btn, grad_colors[0], 0); in lv_example_style_18()
56 lv_obj_set_style_bg_grad_color(btn, grad_colors[1], 0); in lv_example_style_18()
57 lv_obj_set_style_bg_grad_dir(btn, LV_GRAD_DIR_VER, 0); in lv_example_style_18()
58 lv_obj_set_size(btn, 150, 50); in lv_example_style_18()
59 lv_obj_align(btn, LV_ALIGN_CENTER, 0, -40); in lv_example_style_18()
61 label = lv_label_create(btn); in lv_example_style_18()
66 btn = lv_button_create(lv_screen_active()); in lv_example_style_18()
67 lv_obj_add_style(btn, &style_with_linear_gradient_bg, 0); in lv_example_style_18()
68 lv_obj_set_size(btn, 150, 50); in lv_example_style_18()
69 lv_obj_align(btn, LV_ALIGN_CENTER, 0, 20); in lv_example_style_18()
71 label = lv_label_create(btn); in lv_example_style_18()
76 btn = lv_button_create(lv_screen_active()); in lv_example_style_18()
77 lv_obj_add_style(btn, &style_with_radial_gradient_bg, 0); in lv_example_style_18()
78 lv_obj_set_size(btn, 150, 50); in lv_example_style_18()
79 lv_obj_align(btn, LV_ALIGN_CENTER, 0, 80); in lv_example_style_18()
81 label = lv_label_create(btn); in lv_example_style_18()