mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
apps.common: update show_pin_timeout layout
This commit is contained in:
parent
e8f70ed4af
commit
d1df2c45fa
@ -3,12 +3,13 @@ from trezor import ui
|
|||||||
|
|
||||||
|
|
||||||
def show_pin_timeout(wait, total):
|
def show_pin_timeout(wait, total):
|
||||||
ui.display.clear()
|
ui.display.bar(0, 0, ui.SCREEN, ui.SCREEN, ui.BG)
|
||||||
ui.display.loader(1000 - (1000 * wait // total), 0, ui.FG, ui.BG)
|
ui.display.loader(1000 - (1000 * wait // total), -10, ui.FG, ui.BG)
|
||||||
if wait == 1:
|
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:
|
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()
|
ui.display.refresh()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user