Home
last modified time | relevance | path

Searched refs:lv_obj_add_style (Results 1 – 25 of 87) sorted by relevance

1234

/lvgl-latest/src/themes/mono/
Dlv_theme_mono.c240 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
241 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
253 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
254 lv_obj_add_style(obj, &theme->styles.no_radius, 0); in theme_apply()
255 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
263 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
264 lv_obj_add_style(obj, &theme->styles.no_radius, 0); in theme_apply()
269 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
270 lv_obj_add_style(obj, &theme->styles.no_radius, 0); in theme_apply()
271 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
[all …]
/lvgl-latest/src/themes/simple/
Dlv_theme_simple.c213 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
214 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
222 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
227 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
228 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
236 lv_obj_add_style(obj, &theme->styles.light, 0); in theme_apply()
241 lv_obj_add_style(obj, &theme->styles.light, 0); in theme_apply()
242 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
246 lv_obj_add_style(obj, &theme->styles.white, 0); in theme_apply()
247 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
[all …]
/lvgl-latest/src/themes/default/
Dlv_theme_default.c734 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
735 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
736lv_obj_add_style(obj, &theme->styles.scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
748 lv_obj_add_style(obj, &theme->styles.bg_color_white, 0); in theme_apply()
749 lv_obj_add_style(obj, &theme->styles.outline_primary, LV_STATE_FOCUS_KEY); in theme_apply()
750 lv_obj_add_style(obj, &theme->styles.tab_bg_focus, LV_STATE_FOCUS_KEY); in theme_apply()
755 lv_obj_add_style(obj, &theme->styles.pad_normal, 0); in theme_apply()
756 lv_obj_add_style(obj, &theme->styles.rotary_scroll, 0); in theme_apply()
757 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
758lv_obj_add_style(obj, &theme->styles.scrollbar_scrolled, LV_PART_SCROLLBAR | LV_STATE_SCROLLED); in theme_apply()
[all …]
/lvgl-latest/demos/high_res/
Dlv_demo_high_res_app_smart_home.c91 lv_obj_add_style(back_icon, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in lv_demo_high_res_app_smart_home()
97 lv_obj_add_style(back_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_smart_home()
98 lv_obj_add_style(back_label, &c->fonts[FONT_HEADING_MD], 0); in lv_demo_high_res_app_smart_home()
102 lv_obj_add_style(app_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_smart_home()
103 lv_obj_add_style(app_label, &c->fonts[FONT_HEADING_LG], 0); in lv_demo_high_res_app_smart_home()
151 lv_obj_add_style(top_label, &c->fonts[FONT_LABEL_MD], 0); in create_widget1()
163 lv_obj_add_style(main_temp, &c->fonts[FONT_LABEL_2XL], 0); in create_widget1()
172 lv_obj_add_style(outdoor_temp, &c->fonts[FONT_LABEL_XL], 0); in create_widget1()
178 lv_obj_add_style(outdoor_label, &c->fonts[FONT_LABEL_SM], 0); in create_widget1()
216 lv_obj_add_style(top_label, &c->fonts[FONT_LABEL_MD], 0); in create_widget_charging()
[all …]
Dlv_demo_high_res_app_ev_charging.c130 lv_obj_add_style(back_icon, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in lv_demo_high_res_app_ev_charging()
136 lv_obj_add_style(back_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_ev_charging()
137 lv_obj_add_style(back_label, &c->fonts[FONT_HEADING_MD], 0); in lv_demo_high_res_app_ev_charging()
141 lv_obj_add_style(app_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_ev_charging()
142 lv_obj_add_style(app_label, &c->fonts[FONT_HEADING_LG], 0); in lv_demo_high_res_app_ev_charging()
256 lv_obj_add_style(gas_savings_label, &c->fonts[FONT_LABEL_MD], 0); in create_widget1()
257 lv_obj_add_style(gas_savings_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in create_widget1()
260 lv_obj_add_style(estimated_values_label, &c->fonts[FONT_LABEL_SM], 0); in create_widget1()
261 lv_obj_add_style(estimated_values_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in create_widget1()
273 lv_obj_add_style(saved_amount_label, &c->fonts[FONT_LABEL_XL], 0); in create_widget1()
[all …]
Dlv_demo_high_res_home.c92 lv_obj_add_style(date, &c->fonts[FONT_HEADING_MD], 0); in lv_demo_high_res_home()
93 lv_obj_add_style(date, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_home()
100 lv_obj_add_style(time, &c->fonts[FONT_HEADING_XXL], 0); in lv_demo_high_res_home()
101 lv_obj_add_style(time, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_home()
112 lv_obj_add_style(weather_img, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in lv_demo_high_res_home()
119 lv_obj_add_style(weather_label, &c->styles[STYLE_COLOR_ACCENT][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_home()
120 lv_obj_add_style(weather_label, &c->fonts[FONT_LABEL_MD], 0); in lv_demo_high_res_home()
123 lv_obj_add_style(weather_hi_lo_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_home()
124 lv_obj_add_style(weather_hi_lo_label, &c->fonts[FONT_LABEL_MD], 0); in lv_demo_high_res_home()
130 lv_obj_add_style(weather_temperature_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_home()
[all …]
Dlv_demo_high_res_app_thermostat.c96 lv_obj_add_style(back_icon, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in lv_demo_high_res_app_thermostat()
102 lv_obj_add_style(back_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_thermostat()
103 lv_obj_add_style(back_label, &c->fonts[FONT_HEADING_MD], 0); in lv_demo_high_res_app_thermostat()
107 lv_obj_add_style(app_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_thermostat()
108 lv_obj_add_style(app_label, &c->fonts[FONT_HEADING_LG], 0); in lv_demo_high_res_app_thermostat()
138 lv_obj_add_style(label, &c->fonts[FONT_LABEL_XS], 0); in widget1_chart_label()
139 lv_obj_add_style(label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in widget1_chart_label()
159 lv_obj_add_style(title_label, &c->fonts[FONT_LABEL_MD], 0); in create_widget1()
160 lv_obj_add_style(title_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in create_widget1()
214 lv_obj_add_style(consumed_label, &c->fonts[FONT_LABEL_SM], 0); in create_widget1()
[all …]
Dlv_demo_high_res_top_margin.c82 lv_obj_add_style(date_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_top_margin_create()
83 lv_obj_add_style(date_label, &c->fonts[FONT_LABEL_SM], 0); in lv_demo_high_res_top_margin_create()
87 lv_obj_add_style(time_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_top_margin_create()
88 lv_obj_add_style(time_label, &c->fonts[FONT_LABEL_SM], 0); in lv_demo_high_res_top_margin_create()
94 lv_obj_add_style(logout_icon, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in lv_demo_high_res_top_margin_create()
156 lv_obj_add_style(icon, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in create_icon()
225 lv_obj_add_style(settings, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_OBJ], 0); in create_wifi()
231 lv_obj_add_style(ssid, &c->fonts[FONT_LABEL_XS], 0); in create_wifi()
232 lv_obj_add_style(ssid, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in create_wifi()
235 lv_obj_add_style(ip, &c->fonts[FONT_LABEL_XS], 0); in create_wifi()
[all …]
Dlv_demo_high_res_app_smart_meter.c109 lv_obj_add_style(back_icon, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in lv_demo_high_res_app_smart_meter()
115 lv_obj_add_style(back_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_smart_meter()
116 lv_obj_add_style(back_label, &c->fonts[FONT_HEADING_MD], 0); in lv_demo_high_res_app_smart_meter()
120 lv_obj_add_style(app_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_smart_meter()
121 lv_obj_add_style(app_label, &c->fonts[FONT_HEADING_LG], 0); in lv_demo_high_res_app_smart_meter()
164 lv_obj_add_style(title, &c->fonts[FONT_LABEL_MD], 0); in create_widget1_part()
179 lv_obj_add_style(daily_label, &c->fonts[FONT_LABEL_SM], 0); in create_widget1_part()
188 lv_obj_add_style(daily_value_label, &c->fonts[FONT_LABEL_LG], 0); in create_widget1_part()
192 lv_obj_add_style(daily_kwh_label, &c->fonts[FONT_LABEL_SM], 0); in create_widget1_part()
202 lv_obj_add_style(weekly_label, &c->fonts[FONT_LABEL_SM], 0); in create_widget1_part()
[all …]
Dlv_demo_high_res_app_about.c85 lv_obj_add_style(back_icon, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in lv_demo_high_res_app_about()
91 lv_obj_add_style(back_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_about()
92 lv_obj_add_style(back_label, &c->fonts[FONT_HEADING_MD], 0); in lv_demo_high_res_app_about()
96 lv_obj_add_style(app_label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_about()
97 lv_obj_add_style(app_label, &c->fonts[FONT_HEADING_LG], 0); in lv_demo_high_res_app_about()
111 lv_obj_add_style(label, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_app_about()
197 lv_obj_add_style(button, &c->styles[STYLE_COLOR_ACCENT][STYLE_TYPE_OBJ], 0); in create_button()
/lvgl-latest/examples/widgets/slider/
Dlv_example_slider_2.c46 lv_obj_add_style(slider, &style_main, LV_PART_MAIN); in lv_example_slider_2()
47 lv_obj_add_style(slider, &style_indicator, LV_PART_INDICATOR); in lv_example_slider_2()
48 lv_obj_add_style(slider, &style_pressed_color, LV_PART_INDICATOR | LV_STATE_PRESSED); in lv_example_slider_2()
49 lv_obj_add_style(slider, &style_knob, LV_PART_KNOB); in lv_example_slider_2()
50 lv_obj_add_style(slider, &style_pressed_color, LV_PART_KNOB | LV_STATE_PRESSED); in lv_example_slider_2()
/lvgl-latest/examples/get_started/
Dlv_example_get_started_3.c60 lv_obj_add_style(btn, &style_btn, 0); in lv_example_get_started_3()
61 lv_obj_add_style(btn, &style_button_pressed, LV_STATE_PRESSED); in lv_example_get_started_3()
73 lv_obj_add_style(btn2, &style_btn, 0); in lv_example_get_started_3()
74 lv_obj_add_style(btn2, &style_button_red, 0); in lv_example_get_started_3()
75 lv_obj_add_style(btn2, &style_button_pressed, LV_STATE_PRESSED); in lv_example_get_started_3()
/lvgl-latest/demos/music/
Dlv_demo_music_list.c137 lv_obj_add_style(list, &style_scrollbar, LV_PART_SCROLLBAR); in lv_demo_music_list_create()
190 lv_obj_add_style(btn, &style_btn, 0); in add_list_button()
191 lv_obj_add_style(btn, &style_button_pr, LV_STATE_PRESSED); in add_list_button()
192 lv_obj_add_style(btn, &style_button_chk, LV_STATE_CHECKED); in add_list_button()
193 lv_obj_add_style(btn, &style_button_dis, LV_STATE_DISABLED); in add_list_button()
207 lv_obj_add_style(title_label, &style_title, 0); in add_list_button()
211 lv_obj_add_style(artist_label, &style_artist, 0); in add_list_button()
216 lv_obj_add_style(time_label, &style_time, 0); in add_list_button()
/lvgl-latest/examples/styles/
Dlv_example_style_11.c32 lv_obj_add_style(obj_base, &style_base, 0); in lv_example_style_11()
41 lv_obj_add_style(obj_warning, &style_base, 0); in lv_example_style_11()
42 lv_obj_add_style(obj_warning, &style_warning, 0); in lv_example_style_11()
Dlv_example_style_13.c23 lv_obj_add_style(obj, &style_indic, LV_PART_INDICATOR); in lv_example_style_13()
24 lv_obj_add_style(obj, &style_indic_pr, LV_PART_INDICATOR | LV_STATE_PRESSED); in lv_example_style_13()
Dlv_example_style_10.c34 lv_obj_add_style(obj, &style_def, 0); in lv_example_style_10()
35 lv_obj_add_style(obj, &style_pr, LV_STATE_PRESSED); in lv_example_style_10()
/lvgl-latest/examples/widgets/scale/
Dlv_example_scale_5.c32 lv_obj_add_style(scale, &indicator_style, LV_PART_INDICATOR); in lv_example_scale_5()
39 lv_obj_add_style(scale, &minor_ticks_style, LV_PART_ITEMS); in lv_example_scale_5()
46 lv_obj_add_style(scale, &main_line_style, LV_PART_MAIN); in lv_example_scale_5()
Dlv_example_scale_4.c36 lv_obj_add_style(scale, &indicator_style, LV_PART_INDICATOR); in lv_example_scale_4()
43 lv_obj_add_style(scale, &minor_ticks_style, LV_PART_ITEMS); in lv_example_scale_4()
50 lv_obj_add_style(scale, &main_line_style, LV_PART_MAIN); in lv_example_scale_4()
Dlv_example_scale_2.c36 lv_obj_add_style(scale, &indicator_style, LV_PART_INDICATOR); in lv_example_scale_2()
43 lv_obj_add_style(scale, &minor_ticks_style, LV_PART_ITEMS); in lv_example_scale_2()
50 lv_obj_add_style(scale, &main_line_style, LV_PART_MAIN); in lv_example_scale_2()
Dlv_example_scale_6.c85 lv_obj_add_style(scale, &indicator_style, LV_PART_INDICATOR); in lv_example_scale_6()
93 lv_obj_add_style(scale, &minor_ticks_style, LV_PART_ITEMS); in lv_example_scale_6()
100 lv_obj_add_style(scale, &main_line_style, LV_PART_MAIN); in lv_example_scale_6()
/lvgl-latest/examples/widgets/roller/
Dlv_example_roller_2.c36 lv_obj_add_style(roller, &style_sel, LV_PART_SELECTED); in lv_example_roller_2()
49 lv_obj_add_style(roller, &style_sel, LV_PART_SELECTED); in lv_example_roller_2()
59 lv_obj_add_style(roller, &style_sel, LV_PART_SELECTED); in lv_example_roller_2()
/lvgl-latest/examples/widgets/bar/
Dlv_example_bar_2.c26 lv_obj_add_style(bar, &style_bg, 0); in lv_example_bar_2()
27 lv_obj_add_style(bar, &style_indic, LV_PART_INDICATOR); in lv_example_bar_2()
/lvgl-latest/examples/widgets/button/
Dlv_example_button_3.c39 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_button_3()
40 lv_obj_add_style(btn1, &style_def, 0); in lv_example_button_3()
/lvgl-latest/examples/widgets/imagebutton/
Dlv_example_imagebutton_1.c31 lv_obj_add_style(imagebutton1, &style_def, 0); in lv_example_imagebutton_1()
32 lv_obj_add_style(imagebutton1, &style_pr, LV_STATE_PRESSED); in lv_example_imagebutton_1()
/lvgl-latest/examples/others/gestures/
Dlv_example_gestures.c94 lv_obj_add_style(label, &label_style, LV_STATE_DEFAULT); in lv_example_gestures()
166 lv_obj_add_style(label, &label_style, LV_STATE_DEFAULT); in label_scale()
195 lv_obj_add_style(label, &label_style, LV_STATE_DEFAULT); in label_move()

1234