diff --git a/assets/ui-mockup/bl_common.py b/assets/ui-mockup/bl_common.py deleted file mode 100644 index 939e42fcd0..0000000000 --- a/assets/ui-mockup/bl_common.py +++ /dev/null @@ -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) diff --git a/assets/ui-mockup/boot_info.py b/assets/ui-mockup/boot_info.py deleted file mode 100755 index 61fcb50fc4..0000000000 --- a/assets/ui-mockup/boot_info.py +++ /dev/null @@ -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() diff --git a/assets/ui-mockup/boot_init.py b/assets/ui-mockup/boot_init.py deleted file mode 100755 index 8ea347daf0..0000000000 --- a/assets/ui-mockup/boot_init.py +++ /dev/null @@ -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() diff --git a/assets/ui-mockup/boot_nofw.py b/assets/ui-mockup/boot_nofw.py deleted file mode 100755 index 4b8fe1fa26..0000000000 --- a/assets/ui-mockup/boot_nofw.py +++ /dev/null @@ -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() diff --git a/assets/ui-mockup/boot_unsigned.py b/assets/ui-mockup/boot_unsigned.py deleted file mode 100755 index 158b588bf2..0000000000 --- a/assets/ui-mockup/boot_unsigned.py +++ /dev/null @@ -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() diff --git a/assets/ui-mockup/install_fail.py b/assets/ui-mockup/install_fail.py deleted file mode 100755 index 23cdd799b0..0000000000 --- a/assets/ui-mockup/install_fail.py +++ /dev/null @@ -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() diff --git a/assets/ui-mockup/install_fw.py b/assets/ui-mockup/install_fw.py deleted file mode 100755 index 450aed7dab..0000000000 --- a/assets/ui-mockup/install_fw.py +++ /dev/null @@ -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) diff --git a/assets/ui-mockup/install_fw_really.py b/assets/ui-mockup/install_fw_really.py deleted file mode 100755 index 05ae3950bf..0000000000 --- a/assets/ui-mockup/install_fw_really.py +++ /dev/null @@ -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() diff --git a/assets/ui-mockup/install_ok.py b/assets/ui-mockup/install_ok.py deleted file mode 100755 index 8009271b06..0000000000 --- a/assets/ui-mockup/install_ok.py +++ /dev/null @@ -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() diff --git a/assets/ui-mockup/install_progress.py b/assets/ui-mockup/install_progress.py deleted file mode 100755 index e43f756630..0000000000 --- a/assets/ui-mockup/install_progress.py +++ /dev/null @@ -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 diff --git a/assets/ui-mockup/install_u_fw.py b/assets/ui-mockup/install_u_fw.py deleted file mode 100755 index 150f506e3e..0000000000 --- a/assets/ui-mockup/install_u_fw.py +++ /dev/null @@ -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() diff --git a/assets/ui-mockup/res/bootloader.toig b/assets/ui-mockup/res/bootloader.toig deleted file mode 100644 index 9034663c37..0000000000 Binary files a/assets/ui-mockup/res/bootloader.toig and /dev/null differ diff --git a/assets/ui-mockup/res/sl_logo.toif b/assets/ui-mockup/res/sl_logo.toif deleted file mode 100644 index a6c5d05d87..0000000000 Binary files a/assets/ui-mockup/res/sl_logo.toif and /dev/null differ diff --git a/assets/ui-mockup/res/trezor_logo.toif b/assets/ui-mockup/res/trezor_logo.toif deleted file mode 100644 index 82f9cdcd2b..0000000000 Binary files a/assets/ui-mockup/res/trezor_logo.toif and /dev/null differ