summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-08-31 15:44:10 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-08-31 15:44:10 +0200
commit7bd6dd37c20a0206768c5f950d181f3fce7bc0f0 (patch)
tree10c71169111552934821be6b17f5810ea85be6ce /src/windows
parent2697159c8913cd444851f10b4a5892661130e611 (diff)
downloadpoezio-7bd6dd37c20a0206768c5f950d181f3fce7bc0f0.tar.gz
poezio-7bd6dd37c20a0206768c5f950d181f3fce7bc0f0.tar.bz2
poezio-7bd6dd37c20a0206768c5f950d181f3fce7bc0f0.tar.xz
poezio-7bd6dd37c20a0206768c5f950d181f3fce7bc0f0.zip
Add a COLOR_TIME_STRING theming option
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/text_win.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/windows/text_win.py b/src/windows/text_win.py
index 59c5230b..970bd1f8 100644
--- a/src/windows/text_win.py
+++ b/src/windows/text_win.py
@@ -102,7 +102,11 @@ class BaseTextWin(Win):
Write the date on the yth line of the window
"""
if time:
+ color = get_theme().COLOR_TIME_STRING
+ curses_color = to_curses_attr(color)
+ self._win.attron(curses_color)
self.addstr(time)
+ self._win.attroff(curses_color)
self.addstr(' ')
def resize(self, height, width, y, x, room=None):