From fb8295c05f5ff154a1826a7056f65a526d7d4dd2 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 15 Dec 2012 02:05:21 +0100 Subject: Do not use COLOR_HIGHLIGHT_NICK for things not related to highlighted nicks. --- src/theming.py | 4 ++++ src/windows.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/theming.py b/src/theming.py index cf128c5b..2068c83a 100644 --- a/src/theming.py +++ b/src/theming.py @@ -111,6 +111,10 @@ class Theme(object): # Color for the /me message COLOR_ME_MESSAGE = (6, -1) + # Color for various important text. For example the "?" before JIDs in + # the roster that require an user action. + COLOR_IMPORTANT_TEXT = (3, 5, 'b') + # Separators COLOR_VERTICAL_SEPARATOR = (4, -1) COLOR_NEW_TEXT_SEPARATOR = (2, -1) diff --git a/src/windows.py b/src/windows.py index 5168f9c7..e139e87d 100644 --- a/src/windows.py +++ b/src/windows.py @@ -1767,7 +1767,7 @@ class RosterWin(Win): else: self.addstr(display_name) if contact.ask: - self.addstr('?', to_curses_attr(get_theme().COLOR_HIGHLIGHT_NICK)) + self.addstr('?', to_curses_attr(get_theme().COLOR_IMPORTANT_TEXT)) self.finish_line() def draw_resource_line(self, y, resource, colored): @@ -1815,7 +1815,7 @@ class ContactInfoWin(Win): if contact.ask: self.addstr(' ') if contact.ask == 'asked': - self.addstr('Ask: %s' % (contact.ask,), to_curses_attr(get_theme().COLOR_HIGHLIGHT_NICK)) + self.addstr('Ask: %s' % (contact.ask,), to_curses_attr(get_theme().COLOR_IMPORTANT_TEXT)) else: self.addstr('Ask: %s' % (contact.ask,)) self.finish_line() -- cgit v1.2.3