Do not use COLOR_HIGHLIGHT_NICK for things not related to highlighted nicks.
This commit is contained in:
parent
0ef9d3594b
commit
fb8295c05f
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue