You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/bootloader/ui-mockup/install_fw_really.py

41 lines
1.2 KiB

8 years ago
#!../../vendor/micropython/unix/micropython
import sys
sys.path.append('../../src')
from trezor import ui, res
8 years ago
from trezor.ui import button
from bl_common import bl_header
8 years ago
CONFIRM_BUTTON = {
'bg-color': ui.BLUE,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.BLACK,
}
CONFIRM_BUTTON_ACTIVE = {
'bg-color': ui.BLUE,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.BLACK,
}
ui.display.clear()
8 years ago
ui.display.backlight(255)
# header
bl_header('Install new firmware')
8 years ago
# content
ui.display.text(10, 53, 'Warning!', ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text(10, 83, 'Never do this without', ui.NORMAL, ui.WHITE, ui.BLACK)
ui.display.text(10, 106, 'your recovery card and', ui.NORMAL, ui.WHITE, ui.BLACK)
ui.display.text(10, 129, 'due to different vendor', ui.NORMAL, ui.WHITE, ui.BLACK)
ui.display.text(10, 151, 'your storage will be', ui.NORMAL, ui.WHITE, ui.BLACK)
ui.display.text(10, 174, 'wipped!', ui.NORMAL, ui.WHITE, ui.BLACK)
confirm = button.Button((0, 240 - 48, 240, 48), 'Hold to confirm', normal_style=CONFIRM_BUTTON, active_style=CONFIRM_BUTTON_ACTIVE)
confirm.render()
while True:
ui.display.refresh()