1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00

trezor/ui: make layout crossfade faster

This commit is contained in:
Jan Pochyla 2017-10-09 15:32:37 +02:00
parent a09e64090c
commit 8ec8615e89

View File

@ -92,11 +92,11 @@ async def backlight_slide(val: int, delay: int=20000):
def layout(f):
async def inner(*args, **kwargs):
slider = backlight_slide(BACKLIGHT_NORMAL, 4000)
slider = backlight_slide(BACKLIGHT_NORMAL, 1000)
loop.schedule(slider)
await f(*args, **kwargs)
slider.close()
await backlight_slide(BACKLIGHT_DIM, 4000)
await backlight_slide(BACKLIGHT_DIM, 1000)
return inner