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:
Francesco Valla
2021-09-29 11:24:13 +02:00
committed by GitHub
parent e6e98abbc2
commit fc4fdb1e2c
4 changed files with 19 additions and 0 deletions

View File

@@ -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;