From 1cb309260ac5058d80c0de5a249b16282b9980b4 Mon Sep 17 00:00:00 2001 From: chren Date: Tue, 4 Oct 2016 18:49:02 +0200 Subject: [PATCH] ui mockups --- assets/trezor_notext.png | Bin 0 -> 2194 bytes bootloader/ui-mockup/boot.py | 16 +++++ bootloader/ui-mockup/boot_info.py | 38 +++++++++++ .../{welcome-nofw.py => boot_nofw.py} | 1 + bootloader/ui-mockup/boot_unsigned.py | 47 ++++++++++++++ bootloader/ui-mockup/install_fail.py | 37 +++++++++++ bootloader/ui-mockup/install_fw.py | 61 ++++++++++++++++++ bootloader/ui-mockup/install_fw_really.py | 40 ++++++++++++ bootloader/ui-mockup/install_ok.py | 37 +++++++++++ .../{uploading.py => install_progress.py} | 8 ++- .../{upload-request.py => install_u_fw.py} | 26 ++++++-- .../ui-mockup/{logo.toif => res/sl_logo.toif} | Bin bootloader/ui-mockup/welcome-fw-unasigned.py | 39 ----------- bootloader/ui-mockup/welcome-fw.py | 31 --------- 14 files changed, 305 insertions(+), 76 deletions(-) create mode 100644 assets/trezor_notext.png create mode 100755 bootloader/ui-mockup/boot.py create mode 100755 bootloader/ui-mockup/boot_info.py rename bootloader/ui-mockup/{welcome-nofw.py => boot_nofw.py} (99%) create mode 100755 bootloader/ui-mockup/boot_unsigned.py create mode 100755 bootloader/ui-mockup/install_fail.py create mode 100755 bootloader/ui-mockup/install_fw.py create mode 100755 bootloader/ui-mockup/install_fw_really.py create mode 100755 bootloader/ui-mockup/install_ok.py rename bootloader/ui-mockup/{uploading.py => install_progress.py} (56%) rename bootloader/ui-mockup/{upload-request.py => install_u_fw.py} (54%) rename bootloader/ui-mockup/{logo.toif => res/sl_logo.toif} (100%) delete mode 100755 bootloader/ui-mockup/welcome-fw-unasigned.py delete mode 100755 bootloader/ui-mockup/welcome-fw.py diff --git a/assets/trezor_notext.png b/assets/trezor_notext.png new file mode 100644 index 0000000000000000000000000000000000000000..899ff5bdd1df0d8e776794c5e8b546fb39852334 GIT binary patch literal 2194 zcmV;D2yOR?P)U8P*7-ZbZ>KLZ*U+lnSp_Ufq@}0xwybFAi#%#fq@|}KQEO56)-X|e7nZL z$iTqBa9P*U#mSX{G{Bl%P*lRez;J+pfx##xwK$o9f#C}S14DXwNkIt%17i#W1A|CX zc0maP17iUL1A|C*NRTrF17iyV0~1e4YDEbH0|SF|enDkXW_m`6f}y3QrGjHhep0GJ zaAk2xYHqQDXI^rCQ9*uDVo7QW0|Nup4h9AW240u^5(W3f%sd4n162kpgNVo|1qcff zJ_s=cNG>fZg9jx8g8+j9g8_pBLjXe}Lp{R+hNBE`7{wV~7)u#fFy3PlV+vxLz;uCG zm^qSpA@ds+OO_6nTdaDlt*rOhEZL^9ePa)2-_4=K(Z%tFGm-NGmm}8}ZcXk5JW@PU zd4+f<@d@)yL(o<5icqT158+-B6_LH7;i6x}CW#w~Uy-Pgl#@Irl`kzV zeL|*8R$ca%T%Wv){2zs_iiJvgN^h0dsuZZ2sQy$tsNSU!s;Q*;LF<6_B%M@UD?LHI zSNcZ`78uqV#TeU~$eS{ozBIdFzSClfs*^S+dw;4dus<{M;#|MXC)T}S9v!D zcV!QCPhBq)ZyO(X-(bH4|NMaZz==UigLj2o41F2S6d@OB6%`R(5i>J(Puzn9wnW{e zu;hl6HK{k#IWjCVGqdJqU(99Cv(K+6*i`tgSi2;vbXD1#3jNBGs$DgVwO(~o>mN4i zHPtkqZIx>)Y(Ls5-Br|mx>vQYvH$Kwn@O`L|D75??eGkZnfg$5<;Xeg_o%+-I&+-3%01W^SH2RkDT>t<8AY({UO#lFGm;eBCjsO7P zF8~04jQ{|B{r~{faR2}^>Hq*8F{N>7IRF3z^hrcPRCwC#n_X-aRTRhX-JPkkrCYi{ zYn7rvTU?qJu&mLFq_|C5l~6+f!$V2?p!h-z4{D+>CXF8in-CLXBGg!n4Q|0UYNBGI zmV!mFw$c_E)^ z=Y~z3E2O7kBt|Bs`2Z+dn*K;>VK$E@u3z{qIQnOBP66DT^PhW|{33ehbYBb1)mW zpv7)KZ&CbAA854g*2F)qH9o|xxCXXQK)X#=&aW|= zKX%^~mRGFeR&t3yo~)dq+J5IBiETXBSahcmyIYd7;~u&wB~1g36`@MPwb# z_{CAV_s(5dQAnj(BJqyb>dBMwyW020H*1L{F4x4=mp1XTS& zT;WvX0CwU)!!$=yIMw(lu-F&?1Gwh^bT1U?n>mIN;ui>lLrCK=!Wbcp03iS*%|s*9 z(Wx*RmuLgXnzXBQ(E~ZIELRqvq?-(ljs^Y0j!ZHy)3~O52#i|%1(SbH)A%hf=Wqqa zyGh_CI@RExGI;j=n}3f;VA^KF4aJ7yd%J*|y_;*G{WpN3?bn|Nmb++XhXVZoI8GBF zrXK+A)>O;@7=Uimy^sSShC<=+CONE0tB&` zD2k#40Dv*ZHk+NZbG!{h*6 zrM*tm!WXXXxSCWm@=*W)hy{+VQ7L~dS@m&Xw%5Pu0001t?R{4H&6KBW2NkMjK68D5 zu*?JKo3kD5v;2}*lm8;k{Gf0J{&}bH>wQ9keCL;asp^J4x&Q!h001z4a6=wKXzh;k>J{b`07_+mvQ7<@z0D)*UlKG3Pduah3b^Xps8x;!>z^{x z4HuNWG7vQ#TpVlKWPIBR?`iChmO|{>pQ&Xfe)YCc0D%337o#Kh?KRkSN99e8d-XjW)KjbZ%n~5}^TYYgPabHi5H`k8l&|D2a1pkYE z_4_xC*Q$;053HyttwIRJTLyi7CYoYqgQBy%c+>Gq9rOCfDg!aQ>kZHM_W!>J0P4Yp UxK=9h=l}o!07*qoM6N<$f}uL>5&!@I literal 0 HcmV?d00001 diff --git a/bootloader/ui-mockup/boot.py b/bootloader/ui-mockup/boot.py new file mode 100755 index 0000000000..73cd13d7d4 --- /dev/null +++ b/bootloader/ui-mockup/boot.py @@ -0,0 +1,16 @@ +#!../../vendor/micropython/unix/micropython +import sys +sys.path.append('../../src') + +from trezor import ui, res + +ui.display.backlight(255) + +image = res.load('./res/sl_logo.toif') +ui.display.image(60, 20, image) + +ui.display.text_center(120, 174, "SatoshiLabs firmware", 1, ui.WHITE, ui.BLACK) +ui.display.text_center(120, 197, "v0.1.1", 1, ui.GREY, ui.BLACK) + +while True: + ui.display.refresh() \ No newline at end of file diff --git a/bootloader/ui-mockup/boot_info.py b/bootloader/ui-mockup/boot_info.py new file mode 100755 index 0000000000..27417f40e5 --- /dev/null +++ b/bootloader/ui-mockup/boot_info.py @@ -0,0 +1,38 @@ +#!../../vendor/micropython/unix/micropython +import sys +sys.path.append('../../src') + +from trezor import ui, res +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.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') +ui.display.image(60, 10, image) + +ui.display.text_center(120, 148, "SatoshiLabs firmware", 1, ui.WHITE, ui.BLACK) +ui.display.text_center(120, 171, "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.render() + +while True: + ui.display.refresh() \ No newline at end of file diff --git a/bootloader/ui-mockup/welcome-nofw.py b/bootloader/ui-mockup/boot_nofw.py similarity index 99% rename from bootloader/ui-mockup/welcome-nofw.py rename to bootloader/ui-mockup/boot_nofw.py index 9e3bd4ef60..4b839b7ea0 100755 --- a/bootloader/ui-mockup/welcome-nofw.py +++ b/bootloader/ui-mockup/boot_nofw.py @@ -13,5 +13,6 @@ 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() \ No newline at end of file diff --git a/bootloader/ui-mockup/boot_unsigned.py b/bootloader/ui-mockup/boot_unsigned.py new file mode 100755 index 0000000000..41989b3e9b --- /dev/null +++ b/bootloader/ui-mockup/boot_unsigned.py @@ -0,0 +1,47 @@ +#!../../vendor/micropython/unix/micropython +import sys +sys.path.append('../../src') + +from trezor import ui +from trezor.ui import button + +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) + +# background frame +# ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED) +# ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK) + +# header +ui.display.bar(0, 0, 240, 30, ui.LIGHT_RED, ui.BLACK, 4) +ui.display.bar(0, 10, 240, 20, ui.LIGHT_RED) +ui.display.text(10, 23, 'Unsigned firmware!', ui.BOLD, ui.WHITE, ui.LIGHT_RED) + +# content +ui.display.text(10, 60, 'Check your 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=CANCEL_BUTTON, active_style=CANCEL_BUTTON_ACTIVE) +cancel.render() + +while True: + ui.display.refresh() \ No newline at end of file diff --git a/bootloader/ui-mockup/install_fail.py b/bootloader/ui-mockup/install_fail.py new file mode 100755 index 0000000000..17a83aadc9 --- /dev/null +++ b/bootloader/ui-mockup/install_fail.py @@ -0,0 +1,37 @@ +#!../../vendor/micropython/unix/micropython +import sys +sys.path.append('../../src') + +from trezor import ui +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.backlight(255) + +# header +ui.display.bar(0, 0, 240, 30, ui.LIGHT_RED, ui.BLACK, 4) +ui.display.bar(0, 10, 240, 20, ui.LIGHT_RED) +ui.display.text(10, 23, 'Install failed', ui.BOLD, ui.WHITE, ui.LIGHT_RED) + +# content +# 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=DEFAULT_BUTTON, active_style=DEFAULT_BUTTON_ACTIVE) +reboot.render() + +while True: + ui.display.refresh() \ No newline at end of file diff --git a/bootloader/ui-mockup/install_fw.py b/bootloader/ui-mockup/install_fw.py new file mode 100755 index 0000000000..9e5cfe8a99 --- /dev/null +++ b/bootloader/ui-mockup/install_fw.py @@ -0,0 +1,61 @@ +#!../../vendor/micropython/unix/micropython +import sys +sys.path.append('../../src') + +from trezor import ui +from trezor.ui import button + +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.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, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE) + +# content +ui.display.text(10, 53, 'vendor:', ui.BOLD, ui.GREY, ui.BLACK) +ui.display.text(85, 53, 'Monero', ui.NORMAL, ui.WHITE, ui.BLACK) + +ui.display.text(10, 76, 'version:', ui.BOLD, ui.GREY, ui.BLACK) +ui.display.text(85, 76, '0.1.1', ui.NORMAL, ui.WHITE, ui.BLACK) + +# fingerprint box +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) + +confirm = button.Button((121, 240 - 48, 119, 48), 'Confirm', normal_style=CONFIRM_BUTTON, active_style=CONFIRM_BUTTON_ACTIVE) +confirm.render() +cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=CANCEL_BUTTON, active_style=CANCEL_BUTTON_ACTIVE) +cancel.render() + +while True: + ui.display.refresh() \ No newline at end of file diff --git a/bootloader/ui-mockup/install_fw_really.py b/bootloader/ui-mockup/install_fw_really.py new file mode 100755 index 0000000000..072deb2f81 --- /dev/null +++ b/bootloader/ui-mockup/install_fw_really.py @@ -0,0 +1,40 @@ +#!../../vendor/micropython/unix/micropython +import sys +sys.path.append('../../src') + +from trezor import ui +from trezor.ui import button + +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.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, 'Install new firmware', ui.BOLD, ui.WHITE, ui.ORANGE) + +# 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=CONFIRM_BUTTON, active_style=CONFIRM_BUTTON_ACTIVE) +confirm.render() + +while True: + ui.display.refresh() \ No newline at end of file diff --git a/bootloader/ui-mockup/install_ok.py b/bootloader/ui-mockup/install_ok.py new file mode 100755 index 0000000000..b237e38d2b --- /dev/null +++ b/bootloader/ui-mockup/install_ok.py @@ -0,0 +1,37 @@ +#!../../vendor/micropython/unix/micropython +import sys +sys.path.append('../../src') + +from trezor import ui +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.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, 'Install done', ui.BOLD, ui.WHITE, ui.ORANGE) + +# 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=DEFAULT_BUTTON, active_style=DEFAULT_BUTTON_ACTIVE) +reboot.render() + +while True: + ui.display.refresh() \ No newline at end of file diff --git a/bootloader/ui-mockup/uploading.py b/bootloader/ui-mockup/install_progress.py similarity index 56% rename from bootloader/ui-mockup/uploading.py rename to bootloader/ui-mockup/install_progress.py index 0a200fe480..4d005bdb80 100755 --- a/bootloader/ui-mockup/uploading.py +++ b/bootloader/ui-mockup/install_progress.py @@ -6,7 +6,13 @@ from trezor import ui ui.display.backlight(255) -ui.display.text_center(120, 192 + 32, "Uploading firmware", 1, ui.WHITE, ui.BLACK) + +# 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, 'Installing firmware', ui.BOLD, ui.WHITE, ui.ORANGE) + +ui.display.text_center(120, 192 + 32, "In progress ...", 1, ui.WHITE, ui.BLACK) p = 0 while True: diff --git a/bootloader/ui-mockup/upload-request.py b/bootloader/ui-mockup/install_u_fw.py similarity index 54% rename from bootloader/ui-mockup/upload-request.py rename to bootloader/ui-mockup/install_u_fw.py index 81c8446a86..a254c0734b 100755 --- a/bootloader/ui-mockup/upload-request.py +++ b/bootloader/ui-mockup/install_u_fw.py @@ -2,7 +2,7 @@ import sys sys.path.append('../../src') -from trezor import ui, res +from trezor import ui from trezor.ui import button CONFIRM_BUTTON = { @@ -31,10 +31,26 @@ CANCEL_BUTTON_ACTIVE = { } ui.display.backlight(255) -ui.display.text(10, 30, 'Firmware upload', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK) -ui.display.text(10, 60, 'Install new firmware?', ui.BOLD, ui.WHITE, ui.BLACK) -ui.display.text(10, 90, 'Never do this without', ui.NORMAL, ui.WHITE, ui.BLACK) -ui.display.text(10, 120, 'your recovery card!', ui.NORMAL, ui.WHITE, ui.BLACK) + +# background frame +# ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED) +# ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK) + +# header +ui.display.bar(0, 0, 240, 30, ui.LIGHT_RED, ui.BLACK, 4) +ui.display.bar(0, 10, 240, 20, ui.LIGHT_RED) +ui.display.text(10, 23, 'Install new firmware', ui.BOLD, ui.WHITE, ui.LIGHT_RED) + +# 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=CONFIRM_BUTTON, active_style=CONFIRM_BUTTON_ACTIVE) confirm.render() diff --git a/bootloader/ui-mockup/logo.toif b/bootloader/ui-mockup/res/sl_logo.toif similarity index 100% rename from bootloader/ui-mockup/logo.toif rename to bootloader/ui-mockup/res/sl_logo.toif diff --git a/bootloader/ui-mockup/welcome-fw-unasigned.py b/bootloader/ui-mockup/welcome-fw-unasigned.py deleted file mode 100755 index 91cd172a89..0000000000 --- a/bootloader/ui-mockup/welcome-fw-unasigned.py +++ /dev/null @@ -1,39 +0,0 @@ -#!../../vendor/micropython/unix/micropython -import sys -sys.path.append('../../src') - -from trezor import ui, res -from trezor.ui import button - -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, -} - -ui.display.backlight(255) - -image = res.load('./logo.toif') -ui.display.image(60, 0, image) - - -ui.display.text_center(120, 144, "SatoshiLabs firmware", 1, ui.WHITE, ui.BLACK) -ui.display.text_center(120, 164, "v0.1.1", 1, ui.GREY, ui.BLACK) - -confirm = button.Button((0, 240 - 48, 240, 48), 'Start anyway', normal_style=CONFIRM_BUTTON, active_style=CONFIRM_BUTTON_ACTIVE) -confirm.render() - -ui.display.bar(1, 1, 238, 38, ui.LIGHT_RED) -ui.display.bar(3, 3, 234, 34, ui.BLACK) -ui.display.text_center(120, 26, "Unsigned firmware!", 1, ui.LIGHT_RED, ui.BLACK) - - -while True: - ui.display.refresh() \ No newline at end of file diff --git a/bootloader/ui-mockup/welcome-fw.py b/bootloader/ui-mockup/welcome-fw.py deleted file mode 100755 index 9b35a8c22b..0000000000 --- a/bootloader/ui-mockup/welcome-fw.py +++ /dev/null @@ -1,31 +0,0 @@ -#!../../vendor/micropython/unix/micropython -import sys -sys.path.append('../../src') - -from trezor import ui, res -from trezor.ui import button - -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, -} - -ui.display.backlight(255) - -image = res.load('./logo.toif') -ui.display.image(60, 20, image) - - -ui.display.text_center(120, 174, "SatoshiLabs firmware", 1, ui.WHITE, ui.BLACK) -ui.display.text_center(120, 194, "v0.1.1", 1, ui.GREY, ui.BLACK) - -while True: - ui.display.refresh() \ No newline at end of file