1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

ui: proper size for loader

This commit is contained in:
Pavol Rusnak 2016-10-11 11:29:31 +02:00
parent ad6c274e07
commit d9546d45b9
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 2 deletions

BIN
assets/trezor-80s.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

View File

@ -28,10 +28,10 @@ class Loader():
def start(self): def start(self):
self.start_ticks_ms = utime.ticks_ms() self.start_ticks_ms = utime.ticks_ms()
ui.display.bar(0, 48, 240, 240 - 96, ui.BLACK) ui.display.bar(0, 32, 240, 240 - 80, ui.BLACK)
def stop(self): def stop(self):
ui.display.bar(0, 48, 240, 240 - 96, ui.BLACK) ui.display.bar(0, 32, 240, 240 - 80, ui.BLACK)
ticks_diff = utime.ticks_ms() - self.start_ticks_ms ticks_diff = utime.ticks_ms() - self.start_ticks_ms
self.start_ticks_ms = None self.start_ticks_ms = None
return ticks_diff >= LOADER_MSEC return ticks_diff >= LOADER_MSEC