aboutsummaryrefslogtreecommitdiff
path: root/helpers/key.py
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/key.py')
-rw-r--r--helpers/key.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/helpers/key.py b/helpers/key.py
index 4ec08d1..9099f00 100644
--- a/helpers/key.py
+++ b/helpers/key.py
@@ -96,6 +96,18 @@ class Key(ButtonBehavior, Widget):
96 description = ListProperty([]) 96 description = ListProperty([])
97 state = StringProperty("") 97 state = StringProperty("")
98 98
99 def get_alias_line_color(self):
100 if self.is_loaded_running():
101 return [0, 0, 0, 1]
102 else:
103 return [120/255, 120/255, 120/255, 1]
104
105 def set_alias_line_color(self):
106 pass
107
108 line_color = AliasProperty(get_alias_line_color, set_alias_line_color,
109 bind=['state'])
110
99 def get_alias_color(self): 111 def get_alias_color(self):
100 if self.is_loaded_inactive(): 112 if self.is_loaded_inactive():
101 return [1, 1, 1, 1] 113 return [1, 1, 1, 1]