mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-04 17:26:23 +00:00
ui/swipe: update reset ui and swipe
This commit is contained in:
parent
b8b8e38765
commit
dc5049a3d6
@ -38,7 +38,8 @@ async def animate_swipe():
|
|||||||
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(110, 210, 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
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ def degrees(swipe: int) -> int:
|
|||||||
|
|
||||||
class Swipe(ui.Widget):
|
class Swipe(ui.Widget):
|
||||||
|
|
||||||
def __init__(self, area=None, absolute=False, directions=SWIPE_ALL, treshold=80):
|
def __init__(self, area=None, absolute=False, directions=SWIPE_ALL, treshold=30):
|
||||||
self.area = area or (0, 0, ui.SCREEN, ui.SCREEN)
|
self.area = area or (0, 0, ui.SCREEN, ui.SCREEN)
|
||||||
self.absolute = absolute
|
self.absolute = absolute
|
||||||
self.directions = directions
|
self.directions = directions
|
||||||
|
Loading…
Reference in New Issue
Block a user