mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
assets: remove obsolete ui-mockup
This commit is contained in:
parent
ca8d93ab5d
commit
5bec30e0dc
@ -1,10 +0,0 @@
|
||||
from trezor import ui, res
|
||||
|
||||
BL_HEADER_FG = ui.BLACK
|
||||
BL_HEADER_BG = ui.ORANGE
|
||||
|
||||
def bl_header(title):
|
||||
ui.display.bar(0, 0, 240, 32, BL_HEADER_BG)
|
||||
image = res.load('./res/bootloader.toig')
|
||||
ui.display.icon(8, 4, image, BL_HEADER_FG, BL_HEADER_BG)
|
||||
ui.display.text(8 + 24 + 8, 23, title, ui.BOLD, BL_HEADER_FG, BL_HEADER_BG)
|
@ -1,21 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui, res
|
||||
from trezor.ui import button
|
||||
|
||||
ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
image = res.load('./res/sl_logo.toif')
|
||||
ui.display.image(60, 10, image)
|
||||
|
||||
ui.display.text_center(120, 160, "SatoshiLabs", 1, ui.WHITE, ui.BLACK)
|
||||
ui.display.text_center(120, 183, "v0.1.1", 1, ui.GREY, ui.BLACK)
|
||||
|
||||
reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=button.DEFAULT_BUTTON, active_style=button.DEFAULT_BUTTON_ACTIVE)
|
||||
reboot.render()
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
@ -1,17 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui, res
|
||||
|
||||
ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
image = res.load('./res/sl_logo.toif')
|
||||
ui.display.image(60, 32, image)
|
||||
|
||||
ui.display.text_center(120, 192, "SatoshiLabs", ui.BOLD, ui.WHITE, ui.BLACK)
|
||||
ui.display.text_center(120, 215, "v0.1.1", 1, ui.GREY, ui.BLACK)
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
@ -1,19 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui, res
|
||||
|
||||
ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
image = res.load('../../src/apps/homescreen/res/trezor.toig')
|
||||
ui.display.icon(0, 0, image, ui.WHITE, ui.BLACK)
|
||||
|
||||
ui.display.bar(0, 175, 240, 48, ui.BLACK)
|
||||
|
||||
ui.display.text_center(120, 192 + 32, "Visit TREZOR.io/start", 1, ui.WHITE, ui.BLACK)
|
||||
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
@ -1,33 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui
|
||||
from trezor.ui import button
|
||||
from bl_common import bl_header
|
||||
|
||||
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)
|
||||
|
||||
# header
|
||||
bl_header('Unsigned firmware!')
|
||||
|
||||
# content
|
||||
ui.display.text(10, 60, 'Fingeprint', ui.NORMAL, ui.WHITE, ui.BLACK)
|
||||
|
||||
# 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)
|
||||
|
||||
cancel = button.Button((0, 240 - 48, 240, 48), 'Proceed anyway', normal_style=button.CANCEL_BUTTON, active_style=button.CANCEL_BUTTON_ACTIVE)
|
||||
cancel.render()
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
@ -1,27 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui
|
||||
from trezor.ui import button
|
||||
from bl_common import bl_header
|
||||
|
||||
ui.display.clear()
|
||||
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)
|
||||
|
||||
# header
|
||||
bl_header('Install failed')
|
||||
|
||||
# content
|
||||
ui.display.text(10, 53, 'Some error happend', ui.NORMAL, ui.WHITE, ui.BLACK)
|
||||
ui.display.text(10, 79, 'Sorry, try again maybe?', ui.NORMAL, ui.WHITE, ui.BLACK)
|
||||
|
||||
reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=button.DEFAULT_BUTTON, active_style=button.DEFAULT_BUTTON_ACTIVE)
|
||||
reboot.render()
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
@ -1,46 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
import utime
|
||||
from trezor import ui, res
|
||||
from trezor.ui import button
|
||||
from bl_common import bl_header
|
||||
|
||||
ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# header
|
||||
bl_header('Install new firmware')
|
||||
|
||||
# content
|
||||
ui.display.text(10, 53, 'SatoshiLabs v0.1.1', ui.NORMAL, ui.WHITE, ui.BLACK)
|
||||
|
||||
def fingerprint():
|
||||
ui.display.bar(0, 60, 240, 128, ui.BLACK)
|
||||
ui.display.text(10, 76, 'Fingerprint:', ui.BOLD, ui.GREY, ui.BLACK)
|
||||
ui.display.bar(10, 82, 220, 102, ui.DARK_GREY)
|
||||
s = 105
|
||||
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)
|
||||
|
||||
def logo():
|
||||
ui.display.bar(0, 60, 240, 128, ui.BLACK)
|
||||
image = res.load('./res/sl_logo.toif')
|
||||
ui.display.image(60, 64, image)
|
||||
|
||||
confirm = button.Button((121, 240 - 48, 119, 48), 'Confirm', normal_style=button.CONFIRM_BUTTON, active_style=button.CONFIRM_BUTTON_ACTIVE)
|
||||
confirm.render()
|
||||
cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=button.CANCEL_BUTTON, active_style=button.CANCEL_BUTTON_ACTIVE)
|
||||
cancel.render()
|
||||
|
||||
while True:
|
||||
logo()
|
||||
ui.display.refresh()
|
||||
utime.sleep(2)
|
||||
|
||||
fingerprint()
|
||||
ui.display.refresh()
|
||||
utime.sleep(2)
|
@ -1,27 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui
|
||||
from trezor.ui import button
|
||||
from bl_common import bl_header
|
||||
|
||||
ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# header
|
||||
bl_header('Install new firmware')
|
||||
|
||||
# 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=button.CONFIRM_BUTTON, active_style=button.CONFIRM_BUTTON_ACTIVE)
|
||||
confirm.render()
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
@ -1,24 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui
|
||||
from trezor.ui import button
|
||||
from bl_common import bl_header
|
||||
|
||||
ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# header
|
||||
bl_header('Install done')
|
||||
|
||||
# content
|
||||
# content
|
||||
ui.display.text(10, 53, 'Success!', ui.NORMAL, ui.WHITE, ui.BLACK)
|
||||
ui.display.text(10, 79, 'Time to reboot', ui.NORMAL, ui.WHITE, ui.BLACK)
|
||||
|
||||
reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=button.DEFAULT_BUTTON, active_style=button.DEFAULT_BUTTON_ACTIVE)
|
||||
reboot.render()
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
@ -1,24 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui
|
||||
from bl_common import bl_header
|
||||
|
||||
ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# header
|
||||
bl_header('Installing firmware')
|
||||
|
||||
ui.display.text_center(120, 192 + 32, "In progress ...", 1, ui.WHITE, ui.BLACK)
|
||||
|
||||
p = 0
|
||||
while True:
|
||||
|
||||
ui.display.loader(p, 0, ui.BLUE, ui.BLACK)
|
||||
ui.display.text_center(120, 240 // 2 + 14 // 2, "%d%%" % (p // 10), 2, ui.WHITE, ui.BLACK)
|
||||
|
||||
ui.display.refresh()
|
||||
|
||||
p = (p + 1) % 1000
|
@ -1,36 +0,0 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui
|
||||
from trezor.ui import button
|
||||
from bl_common import bl_header
|
||||
|
||||
ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# background frame
|
||||
ui.display.bar(0, 10, 240, 240 - 58, ui.LIGHT_RED)
|
||||
ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
|
||||
|
||||
# header
|
||||
bl_header('Install new firmware')
|
||||
|
||||
# content
|
||||
ui.display.text(10, 60, 'Unsigned firmware!', ui.NORMAL, ui.WHITE, ui.BLACK)
|
||||
|
||||
# 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)
|
||||
|
||||
confirm = button.Button((121, 240 - 48, 119, 48), 'Confirm', normal_style=button.CONFIRM_BUTTON, active_style=button.CONFIRM_BUTTON_ACTIVE)
|
||||
confirm.render()
|
||||
cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=button.CANCEL_BUTTON, active_style=button.CANCEL_BUTTON_ACTIVE)
|
||||
cancel.render()
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user