From 872c44c47732cfd50b3499967d3c8d4aebea0f31 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 25 Feb 2018 14:43:41 +0100 Subject: [PATCH] src/trezor: change textation of pin dialog --- src/trezor/pin.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/trezor/pin.py b/src/trezor/pin.py index 728642ca75..69e426416e 100644 --- a/src/trezor/pin.py +++ b/src/trezor/pin.py @@ -8,9 +8,12 @@ def pin_to_int(pin: str) -> int: def show_pin_timeout(seconds: int, progress: int): if progress == 0: ui.display.bar(0, 0, ui.WIDTH, ui.HEIGHT, ui.BG) - ui.display.loader(progress, -10, ui.FG, ui.BG) + ui.display.text_center(ui.WIDTH // 2, 37, 'Verifying PIN', ui.BOLD, ui.FG, ui.BG, ui.WIDTH) + ui.display.loader(progress, 0, ui.FG, ui.BG) if seconds == 0: - ui.display.text_center(ui.WIDTH // 2, ui.HEIGHT - 20, 'Done', ui.BOLD, ui.FG, ui.BG, ui.WIDTH) + ui.display.text_center(ui.WIDTH // 2, ui.HEIGHT - 22, 'Done', ui.BOLD, ui.FG, ui.BG, ui.WIDTH) + elif seconds == 1: + ui.display.text_center(ui.WIDTH // 2, ui.HEIGHT - 22, '1 second left', ui.BOLD, ui.FG, ui.BG, ui.WIDTH) else: - ui.display.text_center(ui.WIDTH // 2, ui.HEIGHT - 20, 'Waiting for %d s' % seconds, ui.BOLD, ui.FG, ui.BG, ui.WIDTH) + ui.display.text_center(ui.WIDTH // 2, ui.HEIGHT - 22, '%d seconds left' % seconds, ui.BOLD, ui.FG, ui.BG, ui.WIDTH) ui.display.refresh()