mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
removed old playground and some color changes
This commit is contained in:
parent
096bfbaf2a
commit
cc35a00639
@ -82,9 +82,9 @@ async def show_mnemonic_page(page, page_count, mnemonic):
|
|||||||
top = pi * 30 + 74
|
top = pi * 30 + 74
|
||||||
pos = wi + 1
|
pos = wi + 1
|
||||||
ui.display.text_right(
|
ui.display.text_right(
|
||||||
40, top, '%d.' % pos, ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
|
15, top, '%d.' % pos, ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
|
||||||
ui.display.text(
|
ui.display.text(
|
||||||
45, top, '%s' % word, ui.BOLD, ui.WHITE, ui.BLACK)
|
40, top, '%s' % word, ui.BOLD, ui.WHITE, ui.BLACK)
|
||||||
|
|
||||||
if page + 1 == page_count:
|
if page + 1 == page_count:
|
||||||
await Button(
|
await Button(
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
def boot():
|
|
||||||
print("chrenova appka")
|
|
@ -1,16 +0,0 @@
|
|||||||
from trezor import ui
|
|
||||||
from trezor import loop
|
|
||||||
from trezor import res
|
|
||||||
|
|
||||||
def layout_loading():
|
|
||||||
|
|
||||||
ui.display.text_center(120, 240 - 18, 'Processing ...', ui.BOLD, ui.WHITE, ui.BLACK)
|
|
||||||
p = 0
|
|
||||||
|
|
||||||
def func(foreground):
|
|
||||||
ui.display.loader(p, ui.YELLOW, 0, res.load('apps/playground_chren/res/gears3.toig'), ui.WHITE)
|
|
||||||
p = (p + 10) % 1000
|
|
||||||
|
|
||||||
animation = ui.animate_pulse(func, ui.WHITE, ui.GREY, speed=400000)
|
|
||||||
|
|
||||||
yield from animation
|
|
@ -1,19 +0,0 @@
|
|||||||
from trezor import ui
|
|
||||||
from trezor import loop
|
|
||||||
|
|
||||||
def layout_scrollicon():
|
|
||||||
|
|
||||||
def func_top(foreground):
|
|
||||||
ui.display.bar(102, 214, 36, 4, foreground, ui.BLACK, 2)
|
|
||||||
|
|
||||||
def func_middle(foreground):
|
|
||||||
ui.display.bar(106, 222, 28, 4, foreground, ui.BLACK, 2)
|
|
||||||
|
|
||||||
def func_bottom(foreground):
|
|
||||||
ui.display.bar(110, 230, 20, 4, foreground, ui.BLACK, 2)
|
|
||||||
|
|
||||||
animation_top = ui.animate_pulse(func_top, ui.DARK_GREY, ui.LIGHT_GREY, speed=300000, delay=0)
|
|
||||||
animation_middle = ui.animate_pulse(func_middle, ui.DARK_GREY, ui.LIGHT_GREY, speed=300000, delay=100000)
|
|
||||||
animation_bottom = ui.animate_pulse(func_bottom, ui.DARK_GREY, ui.LIGHT_GREY, speed=300000, delay=200000)
|
|
||||||
|
|
||||||
yield loop.Wait([animation_top, animation_middle, animation_bottom])
|
|
@ -1,43 +0,0 @@
|
|||||||
from trezor import ui
|
|
||||||
from trezor import loop
|
|
||||||
from trezor import res
|
|
||||||
from trezor.ui.scroll import Scroll
|
|
||||||
|
|
||||||
def layout_send_tx():
|
|
||||||
|
|
||||||
# paint background black
|
|
||||||
ui.display.bar(0, 0, 240, 240, ui.BLACK)
|
|
||||||
|
|
||||||
# top header bar
|
|
||||||
# ui.display.bar(0, 0, 240, 48, ui.PM_BLUE, ui.BLACK, 4)
|
|
||||||
ui.display.icon(10, 9, res.load('apps/playground_chren/res/arrow-up2.toig'), ui.BLACK, ui.PM_BLUE)
|
|
||||||
ui.display.text(40, 28, 'Sending coins', ui.BOLD, ui.PM_BLUE, ui.BLACK)
|
|
||||||
|
|
||||||
|
|
||||||
# content
|
|
||||||
ui.display.bar(0, 42, 240, 198, ui.BLACK)
|
|
||||||
ui.display.text(10, 70, 'Amount:', ui.BOLD, ui.GREY, ui.BLACK)
|
|
||||||
ui.display.text(10, 100, '0.0000341 BTC', ui.MONO, ui.WHITE, ui.BLACK)
|
|
||||||
ui.display.text(10, 130, 'To address:', ui.BOLD, ui.GREY, ui.BLACK)
|
|
||||||
ui.display.text(10, 160, '1NDpZ2wyFekVezssS', ui.MONO, ui.WHITE, ui.BLACK)
|
|
||||||
ui.display.text(10, 185, 'Xv2tmQgmxcoHMUJ7u', ui.MONO, ui.WHITE, ui.BLACK)
|
|
||||||
|
|
||||||
scroll = Scroll(page=0, totale_lines=20, lines_per_page=4)
|
|
||||||
scroll.render()
|
|
||||||
|
|
||||||
|
|
||||||
# swipe down indicator
|
|
||||||
def func_top(foreground):
|
|
||||||
ui.display.bar(102, 214, 36, 4, foreground, ui.BLACK, 2)
|
|
||||||
|
|
||||||
def func_middle(foreground):
|
|
||||||
ui.display.bar(106, 222, 28, 4, foreground, ui.BLACK, 2)
|
|
||||||
|
|
||||||
def func_bottom(foreground):
|
|
||||||
ui.display.bar(110, 230, 20, 4, foreground, ui.BLACK, 2)
|
|
||||||
|
|
||||||
animation_top = ui.animate_pulse(func_top, ui.PM_BLUE, ui.PM_DARK_BLUE, speed=300000, delay=0)
|
|
||||||
animation_middle = ui.animate_pulse(func_middle, ui.PM_BLUE, ui.PM_DARK_BLUE, speed=300000, delay=200000)
|
|
||||||
animation_bottom = ui.animate_pulse(func_bottom, ui.PM_BLUE, ui.PM_DARK_BLUE, speed=300000, delay=400000)
|
|
||||||
|
|
||||||
yield loop.Wait([animation_top, animation_middle, animation_bottom])
|
|
Binary file not shown.
Binary file not shown.
@ -24,7 +24,7 @@ async def paginate(render_page, page_count, page=0, *args):
|
|||||||
|
|
||||||
|
|
||||||
async def animate_swipe():
|
async def animate_swipe():
|
||||||
await ui.animate_pulse(render_swipe_icon, ui.WHITE, ui.GREY, speed=300000, delay=200000)
|
await ui.animate_pulse(render_swipe_icon, ui.GREY, ui.DARK_GREY, speed=300000, delay=200000)
|
||||||
|
|
||||||
|
|
||||||
def render_swipe_icon(fg):
|
def render_swipe_icon(fg):
|
||||||
@ -47,5 +47,5 @@ def render_scrollbar(page, page_count):
|
|||||||
for i in range(0, page_count):
|
for i in range(0, page_count):
|
||||||
if i != page:
|
if i != page:
|
||||||
ui.display.bar(x, y + i * padding, size,
|
ui.display.bar(x, y + i * padding, size,
|
||||||
size, ui.GREY, ui.BLACK, 4)
|
size, ui.DARK_GREY, ui.BLACK, 4)
|
||||||
ui.display.bar(x, y + page * padding, size, size, ui.WHITE, ui.BLACK, 4)
|
ui.display.bar(x, y + page * padding, size, size, ui.WHITE, ui.BLACK, 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user