1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

added loading layout playground

This commit is contained in:
chren 2016-06-13 18:01:35 +02:00 committed by Pavol Rusnak
parent 16f81c3264
commit be01cee8d3
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
5 changed files with 16 additions and 0 deletions

BIN
assets/gears.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
assets/gears2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
assets/gears3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,16 @@
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

Binary file not shown.