mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
core/ui: simplify swipe if animation is disabled
This commit is contained in:
parent
56257eb6a5
commit
47419c7768
@ -33,15 +33,13 @@ def render_scrollbar(pages: int, page: int) -> None:
|
|||||||
|
|
||||||
def render_swipe_icon() -> None:
|
def render_swipe_icon() -> None:
|
||||||
if utils.DISABLE_ANIMATION:
|
if utils.DISABLE_ANIMATION:
|
||||||
icon = res.load(ui.ICON_SWIPE)
|
c = ui.GREY
|
||||||
ui.display.icon(70, 205, icon, ui.GREY, ui.BG)
|
else:
|
||||||
return
|
|
||||||
|
|
||||||
PULSE_PERIOD = const(1200000)
|
PULSE_PERIOD = const(1200000)
|
||||||
|
|
||||||
icon = res.load(ui.ICON_SWIPE)
|
|
||||||
t = ui.pulse(PULSE_PERIOD)
|
t = ui.pulse(PULSE_PERIOD)
|
||||||
c = ui.blend(ui.GREY, ui.DARK_GREY, t)
|
c = ui.blend(ui.GREY, ui.DARK_GREY, t)
|
||||||
|
|
||||||
|
icon = res.load(ui.ICON_SWIPE)
|
||||||
ui.display.icon(70, 205, icon, c, ui.BG)
|
ui.display.icon(70, 205, icon, c, ui.BG)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user