1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

assets: update bootloader ui mockups

This commit is contained in:
Pavol Rusnak 2017-04-09 02:38:24 +02:00
parent fd1718f8b6
commit 56c3c55b7c
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
10 changed files with 18 additions and 132 deletions

View File

@ -5,18 +5,6 @@ sys.path.append('../../src')
from trezor import ui, res from trezor import ui, res
from trezor.ui import button from trezor.ui import button
DEFAULT_BUTTON = {
'bg-color': ui.DARK_GREY,
'fg-color': ui.GREY,
'text-style': ui.NORMAL,
'border-color': ui.BLACK,
}
DEFAULT_BUTTON_ACTIVE = {
'bg-color': ui.GREY,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.GREY,
}
ui.display.clear() ui.display.clear()
ui.display.backlight(255) ui.display.backlight(255)
@ -26,7 +14,7 @@ ui.display.image(60, 10, image)
ui.display.text_center(120, 160, "SatoshiLabs", 1, ui.WHITE, ui.BLACK) 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) 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=DEFAULT_BUTTON, active_style=DEFAULT_BUTTON_ACTIVE) reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=button.DEFAULT_BUTTON, active_style=button.DEFAULT_BUTTON_ACTIVE)
reboot.render() reboot.render()
while True: while True:

View File

@ -14,4 +14,4 @@ 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) ui.display.text_center(120, 215, "v0.1.1", 1, ui.GREY, ui.BLACK)
while True: while True:
ui.display.refresh() ui.display.refresh()

View File

@ -16,4 +16,4 @@ ui.display.text_center(120, 192 + 32, "Visit TREZOR.io/start", 1, ui.WHITE, ui.B
while True: while True:
ui.display.refresh() ui.display.refresh()

View File

@ -2,23 +2,10 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui, res from trezor import ui
from trezor.ui import button from trezor.ui import button
from bl_common import bl_header from bl_common import bl_header
CANCEL_BUTTON = {
'bg-color': ui.RED,
'fg-color': ui.LIGHT_RED,
'text-style': ui.BOLD,
'border-color': ui.RED,
}
CANCEL_BUTTON_ACTIVE = {
'bg-color': ui.RED,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.RED,
}
ui.display.backlight(255) ui.display.backlight(255)
# background frame # background frame
@ -39,7 +26,7 @@ ui.display.text(15, s + 1 * 23, 'bc0ae1c2f715277f', ui.MONO, ui.GREY, ui.DARK_GR
ui.display.text(15, s + 2 * 23, '22b67f26c15e1f75', 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) 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=CANCEL_BUTTON, active_style=CANCEL_BUTTON_ACTIVE) cancel = button.Button((0, 240 - 48, 240, 48), 'Proceed anyway', normal_style=button.CANCEL_BUTTON, active_style=button.CANCEL_BUTTON_ACTIVE)
cancel.render() cancel.render()
while True: while True:

View File

@ -2,23 +2,10 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui, res from trezor import ui
from trezor.ui import button from trezor.ui import button
from bl_common import bl_header from bl_common import bl_header
DEFAULT_BUTTON = {
'bg-color': ui.DARK_GREY,
'fg-color': ui.GREY,
'text-style': ui.NORMAL,
'border-color': ui.BLACK,
}
DEFAULT_BUTTON_ACTIVE = {
'bg-color': ui.GREY,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.GREY,
}
ui.display.clear() ui.display.clear()
ui.display.backlight(255) ui.display.backlight(255)
@ -33,7 +20,7 @@ bl_header('Install failed')
ui.display.text(10, 53, 'Some error happend', ui.NORMAL, ui.WHITE, ui.BLACK) 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) 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=DEFAULT_BUTTON, active_style=DEFAULT_BUTTON_ACTIVE) reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=button.DEFAULT_BUTTON, active_style=button.DEFAULT_BUTTON_ACTIVE)
reboot.render() reboot.render()
while True: while True:

View File

@ -7,31 +7,6 @@ from trezor import ui, res
from trezor.ui import button from trezor.ui import button
from bl_common import bl_header from bl_common import bl_header
CONFIRM_BUTTON = {
'bg-color': ui.GREEN,
'fg-color': ui.LIGHT_GREEN,
'text-style': ui.BOLD,
'border-color': ui.GREEN,
}
CONFIRM_BUTTON_ACTIVE = {
'bg-color': ui.GREEN,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.GREEN,
}
CANCEL_BUTTON = {
'bg-color': ui.RED,
'fg-color': ui.LIGHT_RED,
'text-style': ui.BOLD,
'border-color': ui.RED,
}
CANCEL_BUTTON_ACTIVE = {
'bg-color': ui.RED,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.RED,
}
ui.display.clear() ui.display.clear()
ui.display.backlight(255) ui.display.backlight(255)
@ -56,9 +31,9 @@ def logo():
image = res.load('./res/sl_logo.toif') image = res.load('./res/sl_logo.toif')
ui.display.image(60, 64, image) ui.display.image(60, 64, image)
confirm = button.Button((121, 240 - 48, 119, 48), 'Confirm', normal_style=CONFIRM_BUTTON, active_style=CONFIRM_BUTTON_ACTIVE) confirm = button.Button((121, 240 - 48, 119, 48), 'Confirm', normal_style=button.CONFIRM_BUTTON, active_style=button.CONFIRM_BUTTON_ACTIVE)
confirm.render() confirm.render()
cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=CANCEL_BUTTON, active_style=CANCEL_BUTTON_ACTIVE) cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=button.CANCEL_BUTTON, active_style=button.CANCEL_BUTTON_ACTIVE)
cancel.render() cancel.render()
while True: while True:

View File

@ -2,23 +2,10 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui, res from trezor import ui
from trezor.ui import button from trezor.ui import button
from bl_common import bl_header from bl_common import bl_header
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() ui.display.clear()
ui.display.backlight(255) ui.display.backlight(255)
@ -33,7 +20,7 @@ ui.display.text(10, 129, 'due to different vendor', ui.NORMAL, ui.WHITE, ui.BLAC
ui.display.text(10, 151, 'your storage will be', 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) 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 = button.Button((0, 240 - 48, 240, 48), 'Hold to confirm', normal_style=button.CONFIRM_BUTTON, active_style=button.CONFIRM_BUTTON_ACTIVE)
confirm.render() confirm.render()
while True: while True:

View File

@ -2,23 +2,10 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui, res from trezor import ui
from trezor.ui import button from trezor.ui import button
from bl_common import bl_header from bl_common import bl_header
DEFAULT_BUTTON = {
'bg-color': ui.DARK_GREY,
'fg-color': ui.GREY,
'text-style': ui.NORMAL,
'border-color': ui.BLACK,
}
DEFAULT_BUTTON_ACTIVE = {
'bg-color': ui.GREY,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.GREY,
}
ui.display.clear() ui.display.clear()
ui.display.backlight(255) ui.display.backlight(255)
@ -30,7 +17,7 @@ bl_header('Install done')
ui.display.text(10, 53, 'Success!', ui.NORMAL, ui.WHITE, ui.BLACK) 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) 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=DEFAULT_BUTTON, active_style=DEFAULT_BUTTON_ACTIVE) reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=button.DEFAULT_BUTTON, active_style=button.DEFAULT_BUTTON_ACTIVE)
reboot.render() reboot.render()
while True: while True:

View File

@ -2,7 +2,7 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui, res from trezor import ui
from bl_common import bl_header from bl_common import bl_header
ui.display.clear() ui.display.clear()
@ -16,7 +16,7 @@ ui.display.text_center(120, 192 + 32, "In progress ...", 1, ui.WHITE, ui.BLACK)
p = 0 p = 0
while True: while True:
ui.display.loader(p, ui.BLUE, ui.BLACK) 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.text_center(120, 240 // 2 + 14 // 2, "%d%%" % (p // 10), 2, ui.WHITE, ui.BLACK)
ui.display.refresh() ui.display.refresh()

View File

@ -2,35 +2,10 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui, res from trezor import ui
from trezor.ui import button from trezor.ui import button
from bl_common import bl_header from bl_common import bl_header
CONFIRM_BUTTON = {
'bg-color': ui.GREEN,
'fg-color': ui.LIGHT_GREEN,
'text-style': ui.BOLD,
'border-color': ui.GREEN,
}
CONFIRM_BUTTON_ACTIVE = {
'bg-color': ui.GREEN,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.GREEN,
}
CANCEL_BUTTON = {
'bg-color': ui.RED,
'fg-color': ui.LIGHT_RED,
'text-style': ui.BOLD,
'border-color': ui.RED,
}
CANCEL_BUTTON_ACTIVE = {
'bg-color': ui.RED,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.RED,
}
ui.display.clear() ui.display.clear()
ui.display.backlight(255) ui.display.backlight(255)
@ -52,9 +27,9 @@ ui.display.text(15, s + 1 * 23, 'bc0ae1c2f715277f', ui.MONO, ui.GREY, ui.DARK_GR
ui.display.text(15, s + 2 * 23, '22b67f26c15e1f75', 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) 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=CONFIRM_BUTTON, active_style=CONFIRM_BUTTON_ACTIVE) confirm = button.Button((121, 240 - 48, 119, 48), 'Confirm', normal_style=button.CONFIRM_BUTTON, active_style=button.CONFIRM_BUTTON_ACTIVE)
confirm.render() confirm.render()
cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=CANCEL_BUTTON, active_style=CANCEL_BUTTON_ACTIVE) cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=button.CANCEL_BUTTON, active_style=button.CANCEL_BUTTON_ACTIVE)
cancel.render() cancel.render()
while True: while True: