timer: add colors
@@ -71,7 +71,7 @@ class Py3status:
Called when the timer expires
"""
self.running = False
- self.color = '#FF0000'
+ self.color = self.py3.COLOR_BAD
self.time_left = 0
self.done = True
if self.sound:
@@ -116,7 +116,6 @@ class Py3status:
'index': 'hours',
},
{
- 'color': '#CCCCCC',
'full_text': ':',
},
{
@@ -125,7 +124,6 @@ class Py3status:
'index': 'mins',
},
{
- 'color': '#CCCCCC',
'full_text': ':',
},
{
@@ -162,7 +160,7 @@ class Py3status:
# pause timer
self.running = False
self.time_left = int(self.end_time - time())
- self.color = '#FFFF00'
+ self.color = self.py3.COLOR_DEGRADED
if self.alarm_timer:
self.alarm_timer.cancel()
else:
@@ -173,7 +171,7 @@ class Py3status:
else:
self.end_time = time() + self.time
self.cache_offset = self.end_time % 1
- self.color = '#00FF00'
+ self.color = self.py3.COLOR_GOOD
if self.alarm_timer:
self.alarm_timer.cancel()
self.done = False
