summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-07-03 23:50:07 +0200
committermathieui <mathieui@mathieui.net>2012-07-03 23:50:07 +0200
commit267be566cd12c1ada8c45b632105adc74e5b17f3 (patch)
tree4e82f471af9d6691b79a391a4f9a81f5335666d5 /src
parent95b2b299b701e5d8abf8e9f38fa62a90f105cf28 (diff)
downloadpoezio-267be566cd12c1ada8c45b632105adc74e5b17f3.tar.gz
poezio-267be566cd12c1ada8c45b632105adc74e5b17f3.tar.bz2
poezio-267be566cd12c1ada8c45b632105adc74e5b17f3.tar.xz
poezio-267be566cd12c1ada8c45b632105adc74e5b17f3.zip
Add a new color to the theme, for the warning prompt
- Currently only used by the SSL checking prompt - fg: black ; bg: red ; bold
Diffstat (limited to 'src')
-rw-r--r--src/theming.py1
-rw-r--r--src/windows.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/theming.py b/src/theming.py
index 94d7b005..cf128c5b 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -161,6 +161,7 @@ class Theme(object):
COLOR_STATUS_ONLINE = (16, 4)
# Bars
+ COLOR_WARNING_PROMPT = (16, 1, 'b')
COLOR_INFORMATION_BAR = (7, 4)
COLOR_TOPIC_BAR = (7, 4)
COLOR_SCROLLABLE_NUMBER = (220, 4, 'b')
diff --git a/src/windows.py b/src/windows.py
index f399938e..21f5125c 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -931,8 +931,8 @@ class YesNoInput(Win):
self.txt = txt
with g_lock:
self._win.erase()
- self.addstr(0, 0, self.txt[:self.width-1], to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
- self.finish_line(get_theme().COLOR_INFORMATION_BAR)
+ self.addstr(0, 0, self.txt[:self.width-1], to_curses_attr(get_theme().COLOR_WARNING_PROMPT))
+ self.finish_line(get_theme().COLOR_WARNING_PROMPT)
self._refresh()
def do_command(self, key, raw=False):