1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-12 08:20:56 +00:00

design changes in bootloader mockups

This commit is contained in:
chren 2016-10-05 19:36:30 +02:00
parent 5cbb1ff892
commit a47b6ee7bb
13 changed files with 22 additions and 27 deletions

BIN
assets/bootloader.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -20,16 +20,11 @@ DEFAULT_BUTTON_ACTIVE = {
ui.display.backlight(255) ui.display.backlight(255)
# header
# ui.display.bar(0, 0, 240, 30, ui.ORANGE, ui.BLACK, 4)
# ui.display.bar(0, 10, 240, 20, ui.ORANGE)
# ui.display.text(10, 23, 'Bootloader info', ui.BOLD, ui.WHITE, ui.ORANGE)
image = res.load('./res/sl_logo.toif') image = res.load('./res/sl_logo.toif')
ui.display.image(60, 10, image) ui.display.image(60, 0, image)
ui.display.text_center(120, 148, "SatoshiLabs firmware", 1, ui.WHITE, ui.BLACK) ui.display.text_center(120, 160, "SatoshiLabs firmware", 1, ui.WHITE, ui.BLACK)
ui.display.text_center(120, 171, "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=DEFAULT_BUTTON, active_style=DEFAULT_BUTTON_ACTIVE)
reboot.render() reboot.render()

View File

@ -7,10 +7,10 @@ from trezor import ui, res
ui.display.backlight(255) ui.display.backlight(255)
image = res.load('./res/monero_logo.toif') image = res.load('./res/monero_logo.toif')
ui.display.image(60, 20, image) ui.display.image(60, 32, image)
ui.display.text_center(120, 174, "MONERO", ui.BOLD, ui.WHITE, ui.BLACK) ui.display.text_center(120, 192, "MONERO", ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text_center(120, 197, "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

@ -8,8 +8,8 @@ ui.display.backlight(255)
image = res.load('../../src/apps/homescreen/res/trezor.toig') image = res.load('../../src/apps/homescreen/res/trezor.toig')
ui.display.icon(0, 0, image, ui.WHITE, ui.BLACK) ui.display.icon(0, 0, image, ui.WHITE, ui.BLACK)
ui.display.bar(0, 175, 240, 48, 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) ui.display.text_center(120, 192 + 32, "Visit TREZOR.io/start", 1, ui.WHITE, ui.BLACK)

View File

@ -25,9 +25,9 @@ ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED)
ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK) ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
# header # header
ui.display.bar(0, 0, 240, 30, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 20, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Unsigned firmware!', ui.BOLD, ui.WHITE, ui.ORANGE) ui.display.text(32, 23, 'Unsigned firmware!', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content
ui.display.text(10, 60, 'Check your fingeprint', ui.NORMAL, ui.WHITE, ui.BLACK) ui.display.text(10, 60, 'Check your fingeprint', ui.NORMAL, ui.WHITE, ui.BLACK)

View File

@ -25,8 +25,8 @@ ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED)
ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK) ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
# header # header
ui.display.bar(0, 0, 240, 30, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 20, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Install failed', ui.BOLD, ui.WHITE, ui.ORANGE) ui.display.text(10, 23, 'Install failed', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content

View File

@ -33,8 +33,8 @@ CANCEL_BUTTON_ACTIVE = {
ui.display.backlight(255) ui.display.backlight(255)
# header # header
ui.display.bar(0, 0, 240, 30, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 20, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE) ui.display.text(10, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content

View File

@ -21,8 +21,8 @@ CONFIRM_BUTTON_ACTIVE = {
ui.display.backlight(255) ui.display.backlight(255)
# header # header
ui.display.bar(0, 0, 240, 30, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 20, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE) ui.display.text(10, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content

View File

@ -21,8 +21,8 @@ DEFAULT_BUTTON_ACTIVE = {
ui.display.backlight(255) ui.display.backlight(255)
# header # header
ui.display.bar(0, 0, 240, 30, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 20, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Install done', ui.BOLD, ui.WHITE, ui.ORANGE) ui.display.text(10, 23, 'Install done', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content

View File

@ -8,8 +8,8 @@ ui.display.backlight(255)
# header # header
ui.display.bar(0, 0, 240, 30, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 20, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Installing firmware', ui.BOLD, ui.WHITE, ui.ORANGE) ui.display.text(10, 23, 'Installing firmware', ui.BOLD, ui.WHITE, ui.ORANGE)
ui.display.text_center(120, 192 + 32, "In progress ...", 1, ui.WHITE, ui.BLACK) ui.display.text_center(120, 192 + 32, "In progress ...", 1, ui.WHITE, ui.BLACK)

View File

@ -37,8 +37,8 @@ ui.display.backlight(255)
# ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK) # ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
# header # header
ui.display.bar(0, 0, 240, 30, ui.LIGHT_RED, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.LIGHT_RED, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 20, ui.LIGHT_RED) ui.display.bar(0, 10, 240, 22, ui.LIGHT_RED)
ui.display.text(10, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.LIGHT_RED) ui.display.text(10, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.LIGHT_RED)
# content # content

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB