Lines Matching refs:th
22 static void apply_theme(lv_theme_t * th, lv_obj_t * obj);
49 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_apply() local
50 if(th == NULL) return; in lv_theme_apply()
54 apply_theme(th, obj); /*Apply the theme including the base theme(s)*/ in lv_theme_apply()
82 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_small() local
83 return th ? th->font_small : LV_FONT_DEFAULT; in lv_theme_get_font_small()
88 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_normal() local
89 return th ? th->font_normal : LV_FONT_DEFAULT; in lv_theme_get_font_normal()
94 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_large() local
95 return th ? th->font_large : LV_FONT_DEFAULT; in lv_theme_get_font_large()
100 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_color_primary() local
101 return th ? th->color_primary : lv_palette_main(LV_PALETTE_BLUE_GREY); in lv_theme_get_color_primary()
106 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_color_secondary() local
107 return th ? th->color_secondary : lv_palette_main(LV_PALETTE_BLUE); in lv_theme_get_color_secondary()
114 static void apply_theme(lv_theme_t * th, lv_obj_t * obj) in apply_theme() argument
116 if(th->parent) apply_theme(th->parent, obj); in apply_theme()
117 if(th->apply_cb) th->apply_cb(th, obj); in apply_theme()