Home
last modified time | relevance | path

Searched refs:styles (Results 1 – 25 of 33) sorted by relevance

12

/lvgl-3.5.0/src/extra/themes/default/
Dlv_theme_default.c173 static my_theme_styles_t * styles; variable
221 style_init_reset(&styles->transition_delayed); in style_init()
222 style_init_reset(&styles->transition_normal); in style_init()
230 …lv_style_set_transition(&styles->transition_delayed, &trans_delayed); /*Go back to default state w… in style_init()
232 …lv_style_set_transition(&styles->transition_normal, &trans_normal); /*Go back to default state wit… in style_init()
235 style_init_reset(&styles->scrollbar); in style_init()
238 lv_style_set_bg_color(&styles->scrollbar, sb_color); in style_init()
240 lv_style_set_radius(&styles->scrollbar, LV_RADIUS_CIRCLE); in style_init()
241 lv_style_set_pad_all(&styles->scrollbar, lv_disp_dpx(theme.disp, 7)); in style_init()
242 lv_style_set_width(&styles->scrollbar, lv_disp_dpx(theme.disp, 5)); in style_init()
[all …]
/lvgl-3.5.0/src/extra/themes/mono/
Dlv_theme_mono.c65 static my_theme_styles_t * styles; variable
79 style_init_reset(&styles->scrollbar); in style_init()
80 lv_style_set_bg_opa(&styles->scrollbar, LV_OPA_COVER); in style_init()
81 lv_style_set_bg_color(&styles->scrollbar, COLOR_FG); in style_init()
82 lv_style_set_width(&styles->scrollbar, PAD_DEF); in style_init()
84 style_init_reset(&styles->scr); in style_init()
85 lv_style_set_bg_opa(&styles->scr, LV_OPA_COVER); in style_init()
86 lv_style_set_bg_color(&styles->scr, COLOR_BG); in style_init()
87 lv_style_set_text_color(&styles->scr, COLOR_FG); in style_init()
88 lv_style_set_pad_row(&styles->scr, PAD_DEF); in style_init()
[all …]
/lvgl-3.5.0/src/extra/themes/basic/
Dlv_theme_basic.c56 static my_theme_styles_t * styles; variable
70 style_init_reset(&styles->scrollbar); in style_init()
71 lv_style_set_bg_opa(&styles->scrollbar, LV_OPA_COVER); in style_init()
72 lv_style_set_bg_color(&styles->scrollbar, COLOR_DARK); in style_init()
73 lv_style_set_width(&styles->scrollbar, SCROLLBAR_WIDTH); in style_init()
75 style_init_reset(&styles->scr); in style_init()
76 lv_style_set_bg_opa(&styles->scr, LV_OPA_COVER); in style_init()
77 lv_style_set_bg_color(&styles->scr, COLOR_SCR); in style_init()
78 lv_style_set_text_color(&styles->scr, COLOR_DIM); in style_init()
81 style_init_reset(&styles->transp); in style_init()
[all …]
/lvgl-3.5.0/examples/styles/
Dindex.rst2 Size styles
5 .. lv_example:: styles/lv_example_style_1
8 Background styles
11 .. lv_example:: styles/lv_example_style_2
14 Border styles
17 .. lv_example:: styles/lv_example_style_3
20 Outline styles
23 .. lv_example:: styles/lv_example_style_4
26 Shadow styles
29 .. lv_example:: styles/lv_example_style_5
[all …]
/lvgl-3.5.0/src/core/
Dlv_obj_style.c83 if(obj->styles[i].is_trans) continue; in lv_obj_add_style()
84 if(obj->styles[i].is_local) continue; in lv_obj_add_style()
92 obj->styles = lv_mem_realloc(obj->styles, obj->style_cnt * sizeof(_lv_obj_style_t)); in lv_obj_add_style()
96 obj->styles[j] = obj->styles[j - 1]; in lv_obj_add_style()
99 lv_memset_00(&obj->styles[i], sizeof(_lv_obj_style_t)); in lv_obj_add_style()
100 obj->styles[i].style = style; in lv_obj_add_style()
101 obj->styles[i].selector = selector; in lv_obj_add_style()
116 lv_state_t state_act = lv_obj_style_get_selector_state(obj->styles[i].selector); in lv_obj_remove_style()
117 lv_part_t part_act = lv_obj_style_get_selector_part(obj->styles[i].selector); in lv_obj_remove_style()
120 (style != NULL && style != obj->styles[i].style)) { in lv_obj_remove_style()
[all …]
Dlv_obj.h178 _lv_obj_style_t * styles; member
Dlv_obj.c874 _lv_obj_style_t * obj_style = &obj->styles[i]; in lv_obj_set_state()
875 lv_state_t state_act = lv_obj_style_get_selector_state(obj->styles[i].selector); in lv_obj_set_state()
876 lv_part_t part_act = lv_obj_style_get_selector_part(obj->styles[i].selector); in lv_obj_set_state()
/lvgl-3.5.0/docs/overview/
Dstyle.md8 - Styles can be cascaded which means multiple styles may be assigned to an object and each style ca…
9 …or a property until a style defines it or use a default if it's not specified by any of the styles.
11 …tyle has higher precedence. This means if a property is specified in two styles the newest style i…
13 - Objects can also have local styles with higher precedence than "normal" styles.
66 ## Cascading styles
67 It's not required to set all the properties in one style. It's possible to add more styles to an ob…
82 Some properties (typically those related to text) can be inherited from the parent object's styles.
83 Inheritance is applied only if the given property is not set in the object's styles (even in defaul…
106 Objects can be composed of *parts* which may each have their own styles.
125 This means all three parts of the slider can have their own styles. See later how to add styles to …
[all …]
Dcoords.md7 - Explicitly set coordinates are stored in styles (size, position, layouts, etc.)
45 #### Removing styles
46 As it's described in the [Using styles](#using-styles) section, coordinates can also be set via sty…
184 ## Using styles
186 … simplicity and set the position, size, and alignment properties in the local styles of the object.
188 However, using styles to set the coordinates has some great advantages:
191 - The values can be partially overwritten by other styles. For example `style_btn` makes the object…
207 …nate setting features have a "simple" version and the more complex features can be used via styles.
Dcolor.md40 LVGL includes [Material Design's palette](https://vuetifyjs.com/en/styles/colors/#material-colors) …
Dindev.md125 …ncoder or keypad it goes to the `LV_STATE_FOCUSED` state. Hence, focused styles will be applied to…
/lvgl-3.5.0/examples/widgets/span/
Dindex.rst2 Span with custom styles
/lvgl-3.5.0/examples/widgets/obj/
Dindex.rst2 Base objects with custom styles
/lvgl-3.5.0/examples/get_started/
Dindex.rst8 Create styles from scratch for buttons
/lvgl-3.5.0/demos/stress/
DREADME.md6 It contains a lot of object creation, deletion, animations, styles usage, and so on. It can be used…
/lvgl-3.5.0/docs/widgets/core/
Ddropdown.md28 The list is hidden/shown on open/close. To add styles to it use `lv_dropdown_get_list(dropdown)` t…
32 lv_obj_add_style(list, &my_style, ...) /*Add the styles to the list*/}`
35 Alternatively the theme can be extended with the new styles.
Dslider.md16 …e(slider, new_value, LV_ANIM_ON/OFF)`. The animation time is set by the styles' `anim_time` prope…
Dtable.md36 The height is calculated automatically from the cell styles (font, padding etc) and the number of r…
Dbtnmatrix.md35 - `LV_BTNMATRIX_CTRL_CHECKED` Make the button checked. It will use the `LV_STATE_CHECHKED` styles.
Dimg.md92 The transformation of the image is independent of the transformation properties coming from styles.…
/lvgl-3.5.0/docs/
DROADMAP.md13 - Switch to RGBA colors in styles
/lvgl-3.5.0/docs/widgets/extra/
Dtileview.md14 The parts and styles work the same as for [lv_obj](/widgets/obj).
/lvgl-3.5.0/src/extra/
DREADME.md6 … from other widgets, or modified an existing widget with special events, styles or animations, or …
/lvgl-3.5.0/docs/get-started/
Dquick-overview.md157 By using parts you can apply different styles to sub-elements of a widget. (See below)
218 Styles can be cascaded (similarly to CSS). It means you can add more styles to a part of an object.
237 To learn all the features of styles see the [Style overview](/overview/style) section.
242 Themes are the default styles for objects. Styles from a theme are applied automatically when objec…
/lvgl-3.5.0/docs/widgets/
Dobj.md9 - contains the styles
20 …described here. To see all the features of LVGL (padding, coordinates in styles, layouts, etc) vis…

12