1
0

kivy: use Clock to improve button responsiveness

This commit is contained in:
ThomasV
2015-12-14 21:34:25 +01:00
parent 0b1561f447
commit 3568c325ea
5 changed files with 23 additions and 9 deletions

View File

@@ -3,6 +3,8 @@
#:import _ electrum.i18n._
# Custom Global Widgets
<Button>
on_parent: self.MIN_STATE_TIME = 0.1
<VGridLayout@GridLayout>:
rows: 1
@@ -219,6 +221,12 @@
height: '40dp'
text_color: self.foreground_color
foreground_color: 1, 0, 0, 1
canvas.before:
Color:
rgba: (0.9, .498, 0.745, 1) if self.state == 'down' else self.background_color
Rectangle:
size: self.size
pos: self.pos
<TextInputBlue@TextInput>
@@ -251,12 +259,12 @@
carousel: carousel
do_default_tab: False
Carousel:
scroll_timeout: 190
scroll_timeout: 250
scroll_distance: '20dp'
anim_type: 'out_quart'
min_move: .05
anim_move_duration: .1
anim_cancel_duration: .54
scroll_distance: '10dp'
on_index: root.on_index(*args)
id: carousel