From 267be566cd12c1ada8c45b632105adc74e5b17f3 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 3 Jul 2012 23:50:07 +0200 Subject: Add a new color to the theme, for the warning prompt - Currently only used by the SSL checking prompt - fg: black ; bg: red ; bold --- src/theming.py | 1 + src/windows.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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): -- cgit v1.2.3