|
|
|
@ -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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|