acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_example_style_12.py (379B)
1 # 2 # Local styles 3 # 4 5 style = lv.style_t() 6 style.init() 7 style.set_bg_color(lv.palette_main(lv.PALETTE.GREEN)) 8 style.set_border_color(lv.palette_lighten(lv.PALETTE.GREEN, 3)) 9 style.set_border_width(3) 10 11 obj = lv.obj(lv.scr_act()) 12 obj.add_style(style, 0) 13 14 # Overwrite the background color locally 15 obj.set_style_bg_color(lv.palette_main(lv.PALETTE.ORANGE), lv.PART.MAIN) 16 17 obj.center()