aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-27 12:04:21 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-27 12:04:21 +0200
commit70cfb266c677c77675def8ac26babf7c8ac7d0f8 (patch)
tree63bfa278463a1ad725372720ff9e0922297dbd53
parent6226efcadfe8c3a932c7a948032b433afb0d981d (diff)
downloadMusicSampler-70cfb266c677c77675def8ac26babf7c8ac7d0f8.tar.gz
MusicSampler-70cfb266c677c77675def8ac26babf7c8ac7d0f8.tar.zst
MusicSampler-70cfb266c677c77675def8ac26babf7c8ac7d0f8.zip
Change color when key is running
-rw-r--r--helpers/actions/interrupt_wait.py2
-rw-r--r--helpers/key.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/helpers/actions/interrupt_wait.py b/helpers/actions/interrupt_wait.py
index 36766a2..8f465f0 100644
--- a/helpers/actions/interrupt_wait.py
+++ b/helpers/actions/interrupt_wait.py
@@ -1,4 +1,4 @@
1def run(action, wait_id=None): 1def run(action, wait_id=None, **kwargs):
2 action.mapping.interrupt_wait(wait_id) 2 action.mapping.interrupt_wait(wait_id)
3 3
4def description(action, wait_id=None, **kwargs): 4def description(action, wait_id=None, **kwargs):
diff --git a/helpers/key.py b/helpers/key.py
index b5c1af9..113cf8e 100644
--- a/helpers/key.py
+++ b/helpers/key.py
@@ -124,6 +124,8 @@ class Key(ButtonBehavior, Widget):
124 return [1, 1, 1, 1] 124 return [1, 1, 1, 1]
125 elif self.is_loaded_protecting_repeat(): 125 elif self.is_loaded_protecting_repeat():
126 return [*self.custom_color, 100/255] 126 return [*self.custom_color, 100/255]
127 elif self.is_loaded_running():
128 return [*self.custom_color, 100/255]
127 elif self.is_loaded(allow_substates=True): 129 elif self.is_loaded(allow_substates=True):
128 return [*self.custom_color, 1] 130 return [*self.custom_color, 1]
129 elif self.is_failed(): 131 elif self.is_failed():