1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00
trezor-firmware/assets/ui-mockup/boot_unsigned.py

34 lines
1.0 KiB
Python
Raw Normal View History

2016-10-04 16:49:02 +00:00
#!../../vendor/micropython/unix/micropython
import sys
sys.path.append('../../src')
2017-04-09 00:38:24 +00:00
from trezor import ui
2016-10-04 16:49:02 +00:00
from trezor.ui import button
from bl_common import bl_header
2016-10-04 16:49:02 +00:00
ui.display.backlight(255)
# background frame
ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED)
ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
2016-10-04 16:49:02 +00:00
# header
bl_header('Unsigned firmware!')
2016-10-04 16:49:02 +00:00
# content
2016-10-06 09:47:12 +00:00
ui.display.text(10, 60, 'Fingeprint', ui.NORMAL, ui.WHITE, ui.BLACK)
2016-10-04 16:49:02 +00:00
# fingerprint box
ui.display.bar(10, 76, 220, 105, ui.DARK_GREY)
s = 103
ui.display.text(15, s, '5764715dbcf8ed88', ui.MONO, ui.GREY, ui.DARK_GREY)
ui.display.text(15, s + 1 * 23, 'bc0ae1c2f715277f', ui.MONO, ui.GREY, ui.DARK_GREY)
ui.display.text(15, s + 2 * 23, '22b67f26c15e1f75', ui.MONO, ui.GREY, ui.DARK_GREY)
ui.display.text(15, s + 3 * 23, '43b2b44913b5c255', ui.MONO, ui.GREY, ui.DARK_GREY)
2017-04-09 00:38:24 +00:00
cancel = button.Button((0, 240 - 48, 240, 48), 'Proceed anyway', normal_style=button.CANCEL_BUTTON, active_style=button.CANCEL_BUTTON_ACTIVE)
2016-10-04 16:49:02 +00:00
cancel.render()
while True:
2016-10-05 18:36:28 +00:00
ui.display.refresh()