summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-12-15 02:05:21 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-12-15 02:05:21 +0100
commitfb8295c05f5ff154a1826a7056f65a526d7d4dd2 (patch)
treea489f2c8b4f7be219420d3c661967029fd7a0ecb
parent0ef9d3594beb8c0bd95dcf8dbb55fa2dda1f2777 (diff)
downloadpoezio-fb8295c05f5ff154a1826a7056f65a526d7d4dd2.tar.gz
poezio-fb8295c05f5ff154a1826a7056f65a526d7d4dd2.tar.bz2
poezio-fb8295c05f5ff154a1826a7056f65a526d7d4dd2.tar.xz
poezio-fb8295c05f5ff154a1826a7056f65a526d7d4dd2.zip
Do not use COLOR_HIGHLIGHT_NICK for things not related to highlighted nicks.
-rw-r--r--src/theming.py4
-rw-r--r--src/windows.py4
2 files changed, 6 insertions, 2 deletions
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()