Lines Matching refs:th
25 static void apply_theme(lv_theme_t * th, lv_obj_t * obj);
26 static void apply_theme_recursion(lv_theme_t * th, lv_obj_t * obj);
48 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_apply() local
49 if(th == NULL) return; in lv_theme_apply()
53 apply_theme_recursion(th, obj); /*Apply the theme including the base theme(s)*/ in lv_theme_apply()
68 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_small() local
69 return th ? th->font_small : LV_FONT_DEFAULT; in lv_theme_get_font_small()
74 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_normal() local
75 return th ? th->font_normal : LV_FONT_DEFAULT; in lv_theme_get_font_normal()
80 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_large() local
81 return th ? th->font_large : LV_FONT_DEFAULT; in lv_theme_get_font_large()
86 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_color_primary() local
87 return th ? th->color_primary : lv_palette_main(LV_PALETTE_BLUE_GREY); in lv_theme_get_color_primary()
92 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_color_secondary() local
93 return th ? th->color_secondary : lv_palette_main(LV_PALETTE_BLUE); in lv_theme_get_color_secondary()
100 static void apply_theme(lv_theme_t * th, lv_obj_t * obj) in apply_theme() argument
102 if(th->parent) apply_theme(th->parent, obj); in apply_theme()
103 if(th->apply_cb) th->apply_cb(th, obj); in apply_theme()
106 static void apply_theme_recursion(lv_theme_t * th, lv_obj_t * obj) in apply_theme_recursion() argument
115 apply_theme_recursion(th, obj); in apply_theme_recursion()
121 apply_theme(th, obj); in apply_theme_recursion()