Lines Matching refs:styles
56 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()
82 lv_style_set_bg_opa(&styles->transp, LV_OPA_TRANSP); in style_init()
84 style_init_reset(&styles->white); in style_init()
85 lv_style_set_bg_opa(&styles->white, LV_OPA_COVER); in style_init()
86 lv_style_set_bg_color(&styles->white, COLOR_WHITE); in style_init()
87 lv_style_set_line_width(&styles->white, 1); in style_init()
88 lv_style_set_line_color(&styles->white, COLOR_WHITE); in style_init()
89 lv_style_set_arc_width(&styles->white, 2); in style_init()
90 lv_style_set_arc_color(&styles->white, COLOR_WHITE); in style_init()
92 style_init_reset(&styles->light); in style_init()
93 lv_style_set_bg_opa(&styles->light, LV_OPA_COVER); in style_init()
94 lv_style_set_bg_color(&styles->light, COLOR_LIGHT); in style_init()
95 lv_style_set_line_width(&styles->light, 1); in style_init()
96 lv_style_set_line_color(&styles->light, COLOR_LIGHT); in style_init()
97 lv_style_set_arc_width(&styles->light, 2); in style_init()
98 lv_style_set_arc_color(&styles->light, COLOR_LIGHT); in style_init()
100 style_init_reset(&styles->dark); in style_init()
101 lv_style_set_bg_opa(&styles->dark, LV_OPA_COVER); in style_init()
102 lv_style_set_bg_color(&styles->dark, COLOR_DARK); in style_init()
103 lv_style_set_line_width(&styles->dark, 1); in style_init()
104 lv_style_set_line_color(&styles->dark, COLOR_DARK); in style_init()
105 lv_style_set_arc_width(&styles->dark, 2); in style_init()
106 lv_style_set_arc_color(&styles->dark, COLOR_DARK); in style_init()
108 style_init_reset(&styles->dim); in style_init()
109 lv_style_set_bg_opa(&styles->dim, LV_OPA_COVER); in style_init()
110 lv_style_set_bg_color(&styles->dim, COLOR_DIM); in style_init()
111 lv_style_set_line_width(&styles->dim, 1); in style_init()
112 lv_style_set_line_color(&styles->dim, COLOR_DIM); in style_init()
113 lv_style_set_arc_width(&styles->dim, 2); in style_init()
114 lv_style_set_arc_color(&styles->dim, COLOR_DIM); in style_init()
117 style_init_reset(&styles->arc_line); in style_init()
118 lv_style_set_arc_width(&styles->arc_line, 6); in style_init()
119 style_init_reset(&styles->arc_knob); in style_init()
120 lv_style_set_pad_all(&styles->arc_knob, 5); in style_init()
124 style_init_reset(&styles->ta_cursor); in style_init()
125 lv_style_set_border_side(&styles->ta_cursor, LV_BORDER_SIDE_LEFT); in style_init()
126 lv_style_set_border_color(&styles->ta_cursor, COLOR_DIM); in style_init()
127 lv_style_set_border_width(&styles->ta_cursor, 2); in style_init()
128 lv_style_set_bg_opa(&styles->ta_cursor, LV_OPA_TRANSP); in style_init()
129 lv_style_set_anim_time(&styles->ta_cursor, 500); in style_init()
152 styles = (my_theme_styles_t *)LV_GC_ROOT(_lv_theme_basic_styles); in lv_theme_basic_init()
178 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
179 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
188 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
193 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
194 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
202 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
207 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
208 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
212 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
213 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
217 lv_obj_add_style(obj, &styles->dark, 0); in theme_apply()
225 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
231 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
235 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
236 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
242 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
243 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR); in theme_apply()
249 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
250 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR); in theme_apply()
251 lv_obj_add_style(obj, &styles->dim, LV_PART_KNOB); in theme_apply()
257 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
258 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
264 lv_obj_add_style(obj, &styles->light, LV_PART_INDICATOR); in theme_apply()
265 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply()
271 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
272 lv_obj_add_style(obj, &styles->dim, LV_PART_KNOB); in theme_apply()
278 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
279 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
280 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS); in theme_apply()
281 lv_obj_add_style(obj, &styles->dark, LV_PART_TICKS); in theme_apply()
282 lv_obj_add_style(obj, &styles->dark, LV_PART_CURSOR); in theme_apply()
288 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
289 lv_obj_add_style(obj, &styles->dark, LV_PART_SELECTED); in theme_apply()
295 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
298 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
299 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
300 lv_obj_add_style(obj, &styles->light, LV_PART_SELECTED); in theme_apply()
301 lv_obj_add_style(obj, &styles->dark, LV_PART_SELECTED | LV_STATE_CHECKED); in theme_apply()
307 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
308 lv_obj_add_style(obj, &styles->transp, 0); in theme_apply()
309 lv_obj_add_style(obj, &styles->arc_line, 0); in theme_apply()
310 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR); in theme_apply()
311 lv_obj_add_style(obj, &styles->arc_line, LV_PART_INDICATOR); in theme_apply()
312 lv_obj_add_style(obj, &styles->dim, LV_PART_KNOB); in theme_apply()
313 lv_obj_add_style(obj, &styles->arc_knob, LV_PART_KNOB); in theme_apply()
319 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
320 lv_obj_add_style(obj, &styles->transp, 0); in theme_apply()
321 lv_obj_add_style(obj, &styles->arc_line, 0); in theme_apply()
322 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR); in theme_apply()
323 lv_obj_add_style(obj, &styles->arc_line, LV_PART_INDICATOR); in theme_apply()
329 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
330 lv_obj_add_style(obj, &styles->transp, 0); in theme_apply()
331 lv_obj_add_style(obj, &styles->arc_line, 0); in theme_apply()
332 lv_obj_add_style(obj, &styles->dim, LV_PART_KNOB); in theme_apply()
333 lv_obj_add_style(obj, &styles->arc_knob, LV_PART_KNOB); in theme_apply()
339 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
345 lv_obj_add_style(obj, &styles->white, 0); in theme_apply()
346 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
347 lv_obj_add_style(obj, &styles->ta_cursor, LV_PART_CURSOR | LV_STATE_FOCUSED); in theme_apply()
353 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
359 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
360 lv_obj_add_style(obj, &styles->white, LV_PART_ITEMS); in theme_apply()
361 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
366 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
367 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
374 lv_obj_add_style(obj, &styles->dark, 0); in theme_apply()
380 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
386 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
387 lv_obj_add_style(obj, &styles->dark, LV_PART_CURSOR); in theme_apply()
392 lv_obj_add_style(obj, &styles->scr, 0); in theme_apply()
393 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
396 lv_obj_add_style(obj, &styles->scrollbar, LV_PART_SCROLLBAR); in theme_apply()
402 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()
403 lv_obj_add_style(obj, &styles->light, LV_PART_KNOB); in theme_apply()
409 lv_obj_add_style(obj, &styles->light, 0); in theme_apply()