Home
last modified time | relevance | path

Searched refs:style_btn (Results 1 – 10 of 10) sorted by relevance

/lvgl-3.7.0/examples/get_started/
Dlv_example_get_started_2.c4 static lv_style_t style_btn; variable
17 lv_style_init(&style_btn); in style_init()
18 lv_style_set_radius(&style_btn, 10); in style_init()
19 lv_style_set_bg_opa(&style_btn, LV_OPA_COVER); in style_init()
20 lv_style_set_bg_color(&style_btn, lv_palette_lighten(LV_PALETTE_GREY, 3)); in style_init()
21 lv_style_set_bg_grad_color(&style_btn, lv_palette_main(LV_PALETTE_GREY)); in style_init()
22 lv_style_set_bg_grad_dir(&style_btn, LV_GRAD_DIR_VER); in style_init()
24 lv_style_set_border_color(&style_btn, lv_color_black()); in style_init()
25 lv_style_set_border_opa(&style_btn, LV_OPA_20); in style_init()
26 lv_style_set_border_width(&style_btn, 2); in style_init()
[all …]
Dlv_example_get_started_2.py4 style_btn = lv.style_t() variable
9 style_btn.init()
10 style_btn.set_radius(10)
11 style_btn.set_bg_opa(lv.OPA.COVER)
12 style_btn.set_bg_color(lv.palette_lighten(lv.PALETTE.GREY, 3))
13 style_btn.set_bg_grad_color(lv.palette_main(lv.PALETTE.GREY))
14 style_btn.set_bg_grad_dir(lv.GRAD_DIR.VER)
17 style_btn.set_border_color(lv.color_white())
18 style_btn.set_border_opa(lv.OPA._70)
19 style_btn.set_border_width(2)
[all …]
/lvgl-3.7.0/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_3.c37 static lv_style_t style_btn; in lv_example_btnmatrix_3() local
38 lv_style_init(&style_btn); in lv_example_btnmatrix_3()
39 lv_style_set_radius(&style_btn, 0); in lv_example_btnmatrix_3()
40 lv_style_set_border_width(&style_btn, 1); in lv_example_btnmatrix_3()
41 lv_style_set_border_opa(&style_btn, LV_OPA_50); in lv_example_btnmatrix_3()
42 lv_style_set_border_color(&style_btn, lv_palette_main(LV_PALETTE_GREY)); in lv_example_btnmatrix_3()
43 lv_style_set_border_side(&style_btn, LV_BORDER_SIDE_INTERNAL); in lv_example_btnmatrix_3()
44 lv_style_set_radius(&style_btn, 0); in lv_example_btnmatrix_3()
51 lv_obj_add_style(btnm, &style_btn, LV_PART_ITEMS); in lv_example_btnmatrix_3()
Dlv_example_btnmatrix_3.py37 style_btn = lv.style_t() variable
38 style_btn.init()
39 style_btn.set_radius(0)
40 style_btn.set_border_width(1)
41 style_btn.set_border_opa(lv.OPA._50)
42 style_btn.set_border_color(lv.palette_main(lv.PALETTE.GREY))
43 style_btn.set_border_side(lv.BORDER_SIDE.INTERNAL)
44 style_btn.set_radius(0)
51 btnm.add_style(style_btn, lv.PART.ITEMS)
/lvgl-3.7.0/examples/styles/
Dlv_example_style_14.c4 static lv_style_t style_btn; variable
13 lv_obj_add_style(obj, &style_btn, 0); in new_theme_apply_cb()
20 lv_style_init(&style_btn); in new_theme_init_and_set()
21 lv_style_set_bg_color(&style_btn, lv_palette_main(LV_PALETTE_GREEN)); in new_theme_init_and_set()
22 lv_style_set_border_color(&style_btn, lv_palette_darken(LV_PALETTE_GREEN, 3)); in new_theme_init_and_set()
23 lv_style_set_border_width(&style_btn, 3); in new_theme_init_and_set()
Dlv_example_style_14.py9 self.style_btn = lv.style_t()
10 self.style_btn.init()
11 self.style_btn.set_bg_color(lv.palette_main(lv.PALETTE.GREEN))
12 self.style_btn.set_border_color(lv.palette_darken(lv.PALETTE.GREEN, 3))
13 self.style_btn.set_border_width(3)
45 obj.add_style(self.th_new.style_btn, 0)
/lvgl-3.7.0/demos/music/
Dlv_demo_music_list.c35 static lv_style_t style_btn; variable
76 lv_style_init(&style_btn); in _lv_demo_music_list_create()
77 lv_style_set_bg_opa(&style_btn, LV_OPA_TRANSP); in _lv_demo_music_list_create()
78 lv_style_set_grid_column_dsc_array(&style_btn, grid_cols); in _lv_demo_music_list_create()
79 lv_style_set_grid_row_dsc_array(&style_btn, grid_rows); in _lv_demo_music_list_create()
80 lv_style_set_grid_row_align(&style_btn, LV_GRID_ALIGN_CENTER); in _lv_demo_music_list_create()
81 lv_style_set_layout(&style_btn, LV_LAYOUT_GRID); in _lv_demo_music_list_create()
83 lv_style_set_pad_right(&style_btn, 30); in _lv_demo_music_list_create()
85 lv_style_set_pad_right(&style_btn, 20); in _lv_demo_music_list_create()
136 lv_style_reset(&style_btn); in _lv_demo_music_list_close()
[all …]
/lvgl-3.7.0/docs/overview/
Dstyle.md10 For example `style_btn` can result in a default gray button and `style_btn_red` can add only a `bac…
136 static lv_style_t style_btn;
137 lv_style_init(&style_btn);
138 lv_style_set_bg_color(&style_btn, lv_color_hex(0x115588));
139 lv_style_set_bg_opa(&style_btn, LV_OPA_50);
140 lv_style_set_border_width(&style_btn, 2);
141 lv_style_set_border_color(&style_btn, lv_color_black());
202 lv_obj_add_style(btn, &style_btn, 0); /*Default button style*/
Dcoords.md191 - The values can be partially overwritten by other styles. For example `style_btn` makes the object…
/lvgl-3.7.0/docs/get-started/
Dquick-overview.md219 For example `style_btn` can set a default button appearance, and `style_btn_red` can overwrite the …
221 lv_obj_add_style(btn1, &style_btn, 0);