1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

added header icon to bootloader mockups

This commit is contained in:
chren 2016-10-05 19:52:28 +02:00
parent 2e39c86b42
commit fcde4a4c84
7 changed files with 46 additions and 18 deletions

View File

@ -2,7 +2,7 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui from trezor import ui, res
from trezor.ui import button from trezor.ui import button
CANCEL_BUTTON = { CANCEL_BUTTON = {
@ -27,7 +27,11 @@ ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
# header # header
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 22, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(32, 23, 'Unsigned firmware!', ui.BOLD, ui.WHITE, ui.ORANGE)
image = res.load('./res/bootloader.toig')
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
ui.display.text(35, 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

@ -2,7 +2,7 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui from trezor import ui, res
from trezor.ui import button from trezor.ui import button
DEFAULT_BUTTON = { DEFAULT_BUTTON = {
@ -27,7 +27,11 @@ ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
# header # header
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 22, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Install failed', ui.BOLD, ui.WHITE, ui.ORANGE)
image = res.load('./res/bootloader.toig')
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
ui.display.text(35, 23, 'Install failed', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content
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)

View File

@ -2,7 +2,7 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui from trezor import ui, res
from trezor.ui import button from trezor.ui import button
CONFIRM_BUTTON = { CONFIRM_BUTTON = {
@ -35,7 +35,11 @@ ui.display.backlight(255)
# header # header
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 22, 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)
image = res.load('./res/bootloader.toig')
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
ui.display.text(35, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content
ui.display.text(10, 53, 'Monero v.1.1', ui.NORMAL, ui.WHITE, ui.BLACK) ui.display.text(10, 53, 'Monero v.1.1', ui.NORMAL, ui.WHITE, ui.BLACK)

View File

@ -2,7 +2,7 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui from trezor import ui, res
from trezor.ui import button from trezor.ui import button
CONFIRM_BUTTON = { CONFIRM_BUTTON = {
@ -23,7 +23,11 @@ ui.display.backlight(255)
# header # header
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 22, 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)
image = res.load('./res/bootloader.toig')
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
ui.display.text(35, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content
ui.display.text(10, 53, 'Warning!', ui.BOLD, ui.WHITE, ui.BLACK) ui.display.text(10, 53, 'Warning!', ui.BOLD, ui.WHITE, ui.BLACK)

View File

@ -2,7 +2,7 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui from trezor import ui, res
from trezor.ui import button from trezor.ui import button
DEFAULT_BUTTON = { DEFAULT_BUTTON = {
@ -23,7 +23,11 @@ ui.display.backlight(255)
# header # header
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 22, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Install done', ui.BOLD, ui.WHITE, ui.ORANGE)
image = res.load('./res/bootloader.toig')
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
ui.display.text(35, 23, 'Install done', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content
# content # content

View File

@ -2,7 +2,7 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui from trezor import ui, res
ui.display.backlight(255) ui.display.backlight(255)
@ -10,7 +10,11 @@ ui.display.backlight(255)
# header # header
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 22, ui.ORANGE) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Installing firmware', ui.BOLD, ui.WHITE, ui.ORANGE)
image = res.load('./res/bootloader.toig')
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
ui.display.text(35, 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

@ -2,7 +2,7 @@
import sys import sys
sys.path.append('../../src') sys.path.append('../../src')
from trezor import ui from trezor import ui, res
from trezor.ui import button from trezor.ui import button
CONFIRM_BUTTON = { CONFIRM_BUTTON = {
@ -33,13 +33,17 @@ CANCEL_BUTTON_ACTIVE = {
ui.display.backlight(255) ui.display.backlight(255)
# background frame # background frame
# ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED) ui.display.bar(0, 10, 240, 240 - 58, 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, 32, ui.LIGHT_RED, ui.BLACK, 4) ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
ui.display.bar(0, 10, 240, 22, ui.LIGHT_RED) ui.display.bar(0, 10, 240, 22, ui.ORANGE)
ui.display.text(10, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.LIGHT_RED)
image = res.load('./res/bootloader.toig')
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
ui.display.text(35, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE)
# content # content
ui.display.text(10, 60, 'Unsigned firmware!', ui.NORMAL, ui.WHITE, ui.BLACK) ui.display.text(10, 60, 'Unsigned firmware!', ui.NORMAL, ui.WHITE, ui.BLACK)