apps.common: update show_pin_timeout layout

pull/25/head
Pavol Rusnak 7 years ago
parent e8f70ed4af
commit d1df2c45fa
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -3,12 +3,13 @@ from trezor import ui
def show_pin_timeout(wait, total):
ui.display.clear()
ui.display.loader(1000 - (1000 * wait // total), 0, ui.FG, ui.BG)
ui.display.bar(0, 0, ui.SCREEN, ui.SCREEN, ui.BG)
ui.display.loader(1000 - (1000 * wait // total), -10, ui.FG, ui.BG)
if wait == 1:
ui.display.text_center(120, 220, 'Waiting for 1 second', ui.BOLD, ui.FG, ui.BG)
s = 'Waiting for 1 second'
else:
ui.display.text_center(120, 220, 'Waiting for %d seconds' % wait, ui.BOLD, ui.FG, ui.BG)
s = 'Waiting for %d seconds' % wait
ui.display.text_center(ui.SCREEN // 2, ui.SCREEN - 20, s, ui.BOLD, ui.FG, ui.BG)
ui.display.refresh()

Loading…
Cancel
Save