mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
trezor/ui: make layout crossfade faster
This commit is contained in:
parent
a09e64090c
commit
8ec8615e89
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user