changeset 173:5cf17930bb09

menu (transfer): changed transfer menu effect
author Goffi <goffi@goffi.org>
date Mon, 30 Apr 2018 07:54:47 +0200
parents 7103655647aa
children 620f69e4e378
files cagou/core/menu.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/menu.py	Sun Apr 29 14:56:29 2018 +0200
+++ b/cagou/core/menu.py	Mon Apr 30 07:54:47 2018 +0200
@@ -204,11 +204,11 @@
         self.size_hint_y = 0
         Window.bind(on_keyboard=self.key_input)
         G.host.app.root.add_widget(self)
-        Animation(size_hint_y=0.5, d=2, t='out_elastic').start(self)
+        Animation(size_hint_y=0.5, d=0.3, t='out_back').start(self)
 
     def hide(self):
         Window.unbind(on_keyboard=self.key_input)
-        anim = Animation(size_hint_y=0, d=0.3)
+        anim = Animation(size_hint_y=0, d=0.2)
         anim.bind(on_complete=lambda anim, menu: self.parent.remove_widget(self))
         anim.start(self)