Lines Matching refs:obj

72 static void theme_apply(lv_theme_t * th, lv_obj_t * obj);
232 static void theme_apply(lv_theme_t * th, lv_obj_t * obj) in theme_apply() argument
237 lv_obj_t * parent = lv_obj_get_parent(obj); in theme_apply()
240 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()
245 if(lv_obj_check_type(obj, &lv_obj_class)) { 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()
268 else if(lv_obj_check_type(parent, &lv_win_class) && lv_obj_get_child(parent, 1) == obj) { 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()
275 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
276 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
279 else if(lv_obj_check_type(obj, &lv_button_class)) { in theme_apply()
280 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
281 lv_obj_add_style(obj, &theme->styles.pr, LV_STATE_PRESSED); in theme_apply()
282 lv_obj_add_style(obj, &theme->styles.inv, LV_STATE_CHECKED); in theme_apply()
283 lv_obj_add_style(obj, &theme->styles.disabled, LV_STATE_DISABLED); in theme_apply()
284 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
285 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
290 else if(lv_obj_check_type(obj, &lv_buttonmatrix_class)) { in theme_apply()
293 lv_obj_add_style(obj, &theme->styles.pad_gap, 0); in theme_apply()
294 lv_obj_add_style(obj, &theme->styles.card, LV_PART_ITEMS); in theme_apply()
295 lv_obj_add_style(obj, &theme->styles.pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
296 lv_obj_add_style(obj, &theme->styles.disabled, LV_PART_ITEMS | LV_STATE_DISABLED); in theme_apply()
297 lv_obj_add_style(obj, &theme->styles.underline, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
298 lv_obj_add_style(obj, &theme->styles.large_border, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
304 lv_obj_add_style(obj, &theme->styles.pad_gap, 0); in theme_apply()
305 lv_obj_add_style(obj, &theme->styles.card, LV_PART_ITEMS); in theme_apply()
306 lv_obj_add_style(obj, &theme->styles.pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
307 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
308 lv_obj_add_style(obj, &theme->styles.disabled, LV_PART_ITEMS | LV_STATE_DISABLED); in theme_apply()
309 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
310 lv_obj_add_style(obj, &theme->styles.underline, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
311 lv_obj_add_style(obj, &theme->styles.large_border, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
315 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
316 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
317 lv_obj_add_style(obj, &theme->styles.card, LV_PART_ITEMS); in theme_apply()
318 lv_obj_add_style(obj, &theme->styles.pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
319 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
320 lv_obj_add_style(obj, &theme->styles.disabled, LV_PART_ITEMS | LV_STATE_DISABLED); in theme_apply()
321 lv_obj_add_style(obj, &theme->styles.underline, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
322 lv_obj_add_style(obj, &theme->styles.large_border, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
327 else if(lv_obj_check_type(obj, &lv_bar_class)) { in theme_apply()
328 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
329 lv_obj_add_style(obj, &theme->styles.pad_zero, 0); in theme_apply()
330 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_INDICATOR); in theme_apply()
331 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
336 else if(lv_obj_check_type(obj, &lv_slider_class)) { in theme_apply()
337 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
338 lv_obj_add_style(obj, &theme->styles.pad_zero, 0); in theme_apply()
339 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_INDICATOR); in theme_apply()
340 lv_obj_add_style(obj, &theme->styles.card, LV_PART_KNOB); in theme_apply()
341 lv_obj_add_style(obj, &theme->styles.radius_circle, LV_PART_KNOB); in theme_apply()
342 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
343 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
348 else if(lv_obj_check_type(obj, &lv_table_class)) { in theme_apply()
349 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
350 lv_obj_add_style(obj, &theme->styles.card, LV_PART_ITEMS); in theme_apply()
351 lv_obj_add_style(obj, &theme->styles.no_radius, LV_PART_ITEMS); in theme_apply()
352 lv_obj_add_style(obj, &theme->styles.pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
353 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
354 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
355 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
360 else if(lv_obj_check_type(obj, &lv_checkbox_class)) { in theme_apply()
361 lv_obj_add_style(obj, &theme->styles.pad_gap, LV_PART_MAIN); in theme_apply()
362 lv_obj_add_style(obj, &theme->styles.card, LV_PART_INDICATOR); in theme_apply()
363 lv_obj_add_style(obj, &theme->styles.disabled, LV_PART_INDICATOR | LV_STATE_DISABLED); in theme_apply()
364 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply()
365 lv_obj_add_style(obj, &theme->styles.pr, LV_PART_INDICATOR | LV_STATE_PRESSED); in theme_apply()
366 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
367 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
372 else if(lv_obj_check_type(obj, &lv_switch_class)) { in theme_apply()
373 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
374 lv_obj_add_style(obj, &theme->styles.radius_circle, 0); in theme_apply()
375 lv_obj_add_style(obj, &theme->styles.pad_zero, 0); in theme_apply()
376 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_INDICATOR); in theme_apply()
377 lv_obj_add_style(obj, &theme->styles.radius_circle, LV_PART_INDICATOR); in theme_apply()
378 lv_obj_add_style(obj, &theme->styles.card, LV_PART_KNOB); in theme_apply()
379 lv_obj_add_style(obj, &theme->styles.radius_circle, LV_PART_KNOB); in theme_apply()
380 lv_obj_add_style(obj, &theme->styles.pad_zero, LV_PART_KNOB); in theme_apply()
381 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
382 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
387 else if(lv_obj_check_type(obj, &lv_chart_class)) { in theme_apply()
388 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
389 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
390 lv_obj_add_style(obj, &theme->styles.chart_indic, LV_PART_INDICATOR); in theme_apply()
391 lv_obj_add_style(obj, &theme->styles.card, LV_PART_ITEMS); in theme_apply()
392 lv_obj_add_style(obj, &theme->styles.card, LV_PART_CURSOR); in theme_apply()
393 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
398 else if(lv_obj_check_type(obj, &lv_roller_class)) { in theme_apply()
399 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
400 lv_obj_add_style(obj, &theme->styles.large_line_space, 0); in theme_apply()
401 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_SELECTED); in theme_apply()
402 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
403 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
408 else if(lv_obj_check_type(obj, &lv_dropdown_class)) { in theme_apply()
409 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
410 lv_obj_add_style(obj, &theme->styles.pr, LV_STATE_PRESSED); in theme_apply()
411 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
412 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
414 else if(lv_obj_check_type(obj, &lv_dropdownlist_class)) { in theme_apply()
415 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
416 lv_obj_add_style(obj, &theme->styles.large_line_space, 0); in theme_apply()
417 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
418 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_SELECTED | LV_STATE_CHECKED); in theme_apply()
419 lv_obj_add_style(obj, &theme->styles.pr, LV_PART_SELECTED | LV_STATE_PRESSED); in theme_apply()
420 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
421 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
426 else if(lv_obj_check_type(obj, &lv_arc_class)) { in theme_apply()
427 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
428 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_INDICATOR); in theme_apply()
429 lv_obj_add_style(obj, &theme->styles.pad_zero, LV_PART_INDICATOR); in theme_apply()
430 lv_obj_add_style(obj, &theme->styles.card, LV_PART_KNOB); in theme_apply()
431 lv_obj_add_style(obj, &theme->styles.radius_circle, LV_PART_KNOB); in theme_apply()
432 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
433 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
438 else if(lv_obj_check_type(obj, &lv_textarea_class)) { in theme_apply()
439 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
440 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
441 lv_obj_add_style(obj, &theme->styles.ta_cursor, LV_PART_CURSOR | LV_STATE_FOCUSED); in theme_apply()
442 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUSED); in theme_apply()
443 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
448 else if(lv_obj_check_type(obj, &lv_calendar_class)) { in theme_apply()
449 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
450 lv_obj_add_style(obj, &theme->styles.no_radius, 0); in theme_apply()
451 lv_obj_add_style(obj, &theme->styles.pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
452 lv_obj_add_style(obj, &theme->styles.disabled, LV_PART_ITEMS | LV_STATE_DISABLED); in theme_apply()
453 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
454 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
455 lv_obj_add_style(obj, &theme->styles.large_border, LV_PART_ITEMS | LV_STATE_FOCUS_KEY); in theme_apply()
460 else if(lv_obj_check_type(obj, &lv_keyboard_class)) { in theme_apply()
461 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
462 lv_obj_add_style(obj, &theme->styles.card, LV_PART_ITEMS); in theme_apply()
463 lv_obj_add_style(obj, &theme->styles.pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply()
464 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
465 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
466 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
467 lv_obj_add_style(obj, &theme->styles.large_border, LV_PART_ITEMS | LV_STATE_EDITED); in theme_apply()
471 else if(lv_obj_check_type(obj, &lv_list_class)) { in theme_apply()
472 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
473 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
476 else if(lv_obj_check_type(obj, &lv_list_text_class)) { in theme_apply()
479 else if(lv_obj_check_type(obj, &lv_list_button_class)) { in theme_apply()
480 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
481 lv_obj_add_style(obj, &theme->styles.pr, LV_STATE_PRESSED); in theme_apply()
482 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
483 lv_obj_add_style(obj, &theme->styles.large_border, LV_STATE_EDITED); in theme_apply()
488 else if(lv_obj_check_type(obj, &lv_msgbox_class)) { in theme_apply()
489 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
494 else if(lv_obj_check_type(obj, &lv_spinbox_class)) { in theme_apply()
495 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()
496 lv_obj_add_style(obj, &theme->styles.inv, LV_PART_CURSOR); in theme_apply()
497 lv_obj_add_style(obj, &theme->styles.focus, LV_STATE_FOCUS_KEY); in theme_apply()
498 lv_obj_add_style(obj, &theme->styles.edit, LV_STATE_EDITED); in theme_apply()
502 else if(lv_obj_check_type(obj, &lv_tileview_class)) { in theme_apply()
503 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
504 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
506 else if(lv_obj_check_type(obj, &lv_tileview_tile_class)) { in theme_apply()
507 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply()
512 else if(lv_obj_check_type(obj, &lv_led_class)) { in theme_apply()
513 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply()