fix(disp) set default theme also for non-default displays (#2596)
* feat(theme) add getter function for default theme * fix(disp) set default theme also for non-default displays Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
@@ -603,6 +603,13 @@ lv_theme_t * lv_theme_default_init(lv_disp_t * disp, lv_color_t color_primary, l
|
||||
return (lv_theme_t *)&theme;
|
||||
}
|
||||
|
||||
lv_theme_t * lv_theme_default_get(void)
|
||||
{
|
||||
if(!inited) return NULL;
|
||||
|
||||
return (lv_theme_t *)&theme;
|
||||
}
|
||||
|
||||
bool lv_theme_default_is_inited(void)
|
||||
{
|
||||
return inited;
|
||||
|
||||
Reference in New Issue
Block a user