summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/data_forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data_forms.py b/src/data_forms.py
index 8f19e41b..0ad62f73 100644
--- a/src/data_forms.py
+++ b/src/data_forms.py
@@ -157,7 +157,7 @@ class DummyInput(FieldInput, windows.Win):
class ColoredLabel(windows.Win):
def __init__(self, text):
self.text = text
- self.color = 14
+ self.color = (14, -1)
windows.Win.__init__(self)
def resize(self, height, width, y, x):
@@ -169,9 +169,9 @@ class ColoredLabel(windows.Win):
def refresh(self):
with g_lock:
- self._win.attron(curses.color_pair(self.color))
+ self._win.attron(to_curses_attr(self.color))
self.addstr(0, 0, self.text)
- self._win.attroff(curses.color_pair(self.color))
+ self._win.attroff(to_curses_attr(self.color))
self._refresh()
class BooleanWin(FieldInput, windows.Win):