Lines Matching refs:th
277 lv_subject_init_pointer(&c->th, (void *)&lv_demo_high_res_theme_dark); in lv_demo_high_res_base_obj_create()
278 c->th.user_data = c; in lv_demo_high_res_base_obj_create()
279 lv_subject_add_observer(&c->th, theme_observer_cb, c); in lv_demo_high_res_base_obj_create()
406 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(subject); in lv_demo_high_res_theme_observer_image_src_cb() local
408 if(th == &lv_demo_high_res_theme_light) { in lv_demo_high_res_theme_observer_image_src_cb()
421 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(subject); in lv_demo_high_res_theme_observer_obj_bg_image_src_cb() local
423 if(th == &lv_demo_high_res_theme_light) { in lv_demo_high_res_theme_observer_obj_bg_image_src_cb()
524 const lv_demo_high_res_theme_t * th = lv_subject_get_pointer(subject); in theme_observer_cb() local
525 …const lv_demo_high_res_theme_t * th_other = th == &lv_demo_high_res_theme_light ? &lv_demo_high_re… in theme_observer_cb()
530 lv_color_t color = i == STYLE_COLOR_BASE ? th->base : th->accent; in theme_observer_cb()
531 lv_color_t color_inv = i == STYLE_COLOR_ACCENT ? th->accent : th_other->base; in theme_observer_cb()
555 lv_subject_deinit(&c->th); in free_ctx_event_cb()