add table styles to deafult and template themes

This commit is contained in:
Gabor Kiss-Vamosi
2019-03-20 14:53:59 +01:00
parent a83fdb39a8
commit 12a5e16a75
2 changed files with 16 additions and 0 deletions

View File

@@ -343,6 +343,13 @@ static void tabview_init(void)
#endif
}
static void table_init(void)
{
#if LV_USE_TABLE != 0
theme.style.table.bg = &lv_style_transp_tight;
theme.style.table.cell = &lv_style_plain;
#endif
}
static void win_init(void)
{
@@ -458,6 +465,7 @@ lv_theme_t * lv_theme_default_init(uint16_t hue, lv_font_t * font)
ddlist_init();
roller_init();
tabview_init();
table_init();
win_init();
#if LV_USE_GROUP

View File

@@ -348,6 +348,13 @@ static void tabview_init(void)
#endif
}
static void table_init(void)
{
#if LV_USE_TABLE != 0
theme.style.table.bg = &def;
theme.style.table.cell = &def;
#endif
}
static void win_init(void)
{
@@ -470,6 +477,7 @@ lv_theme_t * lv_theme_templ_init(uint16_t hue, lv_font_t * font)
ddlist_init();
roller_init();
tabview_init();
table_init();
win_init();
#if LV_USE_GROUP