fix(tabview): fix micropython example

This commit is contained in:
Gabor Kiss-Vamosi
2023-11-15 23:41:24 +01:00
parent b11eb4044c
commit b10294186a

View File

@@ -4,7 +4,7 @@ tabview = lv.tabview(lv.screen_active())
tabview.set_style_bg_color(lv.palette_lighten(lv.PALETTE.RED, 2), 0)
tab_buttons = tabview.get_tab_buttons()
tab_buttons = tabview.get_tab_bar()
tab_buttons.set_style_bg_color(lv.palette_darken(lv.PALETTE.GREY, 3), 0)
tab_buttons.set_style_text_color(lv.palette_lighten(lv.PALETTE.GREY, 5), 0)
tab_buttons.set_style_border_side(lv.BORDER_SIDE.RIGHT, lv.PART.ITEMS | lv.STATE.CHECKED)