You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Wifi app: improve style on portrait displays
This commit is contained in:
@@ -31,13 +31,14 @@ class WiFi(Activity):
|
||||
def onCreate(self):
|
||||
print("wifi.py onCreate")
|
||||
main_screen = lv.obj()
|
||||
main_screen.set_style_pad_all(15, lv.PART.MAIN)
|
||||
main_screen.set_style_pad_all(5, lv.PART.MAIN)
|
||||
self.aplist = lv.list(main_screen)
|
||||
self.aplist.set_size(lv.pct(100), lv.pct(75))
|
||||
self.aplist.align(lv.ALIGN.TOP_MID, 0, 0)
|
||||
self.error_label = lv.label(main_screen)
|
||||
self.error_label.set_text("THIS IS ERROR TEXT THAT WILL BE SET LATER")
|
||||
self.error_label.align_to(self.aplist, lv.ALIGN.OUT_BOTTOM_MID, 0, 0)
|
||||
self.error_label.align_to(self.aplist, lv.ALIGN.OUT_BOTTOM_LEFT, 0, 0)
|
||||
#self.error_label.align(lv.ALIGN.BOTTOM_LEFT, 0, 0)
|
||||
self.error_label.add_flag(lv.obj.FLAG.HIDDEN)
|
||||
self.add_network_button = lv.button(main_screen)
|
||||
self.add_network_button.set_size(lv.SIZE_CONTENT, lv.pct(15))
|
||||
|
||||
Reference in New Issue
Block a user