mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
added dummy scroll down icon with animation
This commit is contained in:
parent
fed9309ffa
commit
16f81c3264
@ -4,16 +4,16 @@ from trezor import loop
|
||||
def layout_scrollicon():
|
||||
|
||||
def func_top(foreground):
|
||||
ui.display.bar(102, 216, 36, 4, foreground)
|
||||
ui.display.bar(102, 214, 36, 4, foreground, ui.BLACK, 2)
|
||||
|
||||
def func_middle(foreground):
|
||||
ui.display.bar(106, 223, 28, 4, 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.display.bar(110, 230, 20, 4, foreground, ui.BLACK, 2)
|
||||
|
||||
animation_top = ui.animate_pulse(func_top, ui.GREY, ui.BLACK, speed=300000, delay=0)
|
||||
animation_middle = ui.animate_pulse(func_middle, ui.GREY, ui.BLACK, speed=300000, delay=100000)
|
||||
animation_bottom = ui.animate_pulse(func_bottom, ui.GREY, ui.BLACK, speed=300000, delay=200000)
|
||||
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])
|
||||
|
@ -3,14 +3,12 @@ from trezor import msg
|
||||
|
||||
# Load all applications
|
||||
from apps import playground
|
||||
from apps import playground_chren
|
||||
from apps import homescreen
|
||||
from apps import management
|
||||
from apps import wallet
|
||||
|
||||
# Initialize all applications
|
||||
playground.boot()
|
||||
playground_chren.boot()
|
||||
homescreen.boot()
|
||||
management.boot()
|
||||
wallet.boot()
|
||||
|
@ -30,7 +30,9 @@ AMBER = rgbcolor(0xFF, 0xC1, 0x07)
|
||||
ORANGE = rgbcolor(0xFF, 0x98, 0x00)
|
||||
DEEP_ORANGE = rgbcolor(0xFF, 0x57, 0x22)
|
||||
BROWN = rgbcolor(0x79, 0x55, 0x48)
|
||||
LIGHT_GREY = rgbcolor(0xDA, 0xDD, 0xD8)
|
||||
GREY = rgbcolor(0x9E, 0x9E, 0x9E)
|
||||
DARK_GREY = rgbcolor(0x3E, 0x3E, 0x3E)
|
||||
BLUE_GRAY = rgbcolor(0x60, 0x7D, 0x8B)
|
||||
BLACK = rgbcolor(0x00, 0x00, 0x00)
|
||||
WHITE = rgbcolor(0xFF, 0xFF, 0xFF)
|
||||
|
Loading…
Reference in New Issue
Block a user