ui/swipe: update reset ui and swipe

pull/25/head
Peter Jensen 7 years ago
parent b8b8e38765
commit dc5049a3d6

@ -38,7 +38,8 @@ async def animate_swipe():
icon = res.load(ui.ICON_SWIPE)
for t in ui.pulse(draw_delay):
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

@ -26,7 +26,7 @@ def degrees(swipe: int) -> int:
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.absolute = absolute
self.directions = directions

Loading…
Cancel
Save