mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 03:48:09 +00:00
ui/scroll: tweak swipe animation
This commit is contained in:
parent
5a5842111b
commit
ac0be4b061
@ -34,12 +34,13 @@ async def animate_swipe():
|
|||||||
time_delay = const(40000)
|
time_delay = const(40000)
|
||||||
draw_delay = const(200000)
|
draw_delay = const(200000)
|
||||||
|
|
||||||
|
ui.display.text_center(130, 220, 'Swipe', ui.BOLD, ui.GREY, ui.BG)
|
||||||
|
|
||||||
sleep = loop.sleep(time_delay)
|
sleep = loop.sleep(time_delay)
|
||||||
icon = res.load(ui.ICON_SWIPE)
|
icon = res.load(ui.ICON_SWIPE)
|
||||||
for t in ui.pulse(draw_delay):
|
for t in ui.pulse(draw_delay):
|
||||||
fg = ui.blend(ui.GREY, ui.DARK_GREY, t)
|
fg = ui.blend(ui.GREY, ui.DARK_GREY, t)
|
||||||
ui.display.icon(70, 205, icon, fg, ui.BG)
|
ui.display.icon(70, 205, icon, fg, ui.BG)
|
||||||
ui.display.text_center(130, 220, 'Swipe', ui.BOLD, fg, ui.BG)
|
|
||||||
yield sleep
|
yield sleep
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user