summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-12-20 19:19:55 +0100
committermathieui <mathieui@mathieui.net>2012-12-20 19:20:30 +0100
commit2a145abf9b3ec78c3d526a75f08cd6fe4908d077 (patch)
tree8f0ce0ad202df05cb31da575047177b9f0a9df47 /src/core.py
parent2a980838a9ccc576fe1699f047e00b783ccf7e7b (diff)
downloadpoezio-2a145abf9b3ec78c3d526a75f08cd6fe4908d077.tar.gz
poezio-2a145abf9b3ec78c3d526a75f08cd6fe4908d077.tar.bz2
poezio-2a145abf9b3ec78c3d526a75f08cd6fe4908d077.tar.xz
poezio-2a145abf9b3ec78c3d526a75f08cd6fe4908d077.zip
Allow theming of the info buffer messages
(only the left part)
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 93a52758..0b684c48 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1062,7 +1062,9 @@ class Core(object):
if words and words in msg:
log.debug('Did not show the message:\n\t%s> %s', typ, msg)
return False
- nb_lines = self.information_buffer.add_message(msg, nickname=typ)
+ colors = get_theme().INFO_COLORS
+ color = colors.get(typ, colors.get('default', None))
+ nb_lines = self.information_buffer.add_message(msg, nickname=typ, nick_color=color)
if isinstance(self.current_tab(), tabs.RosterInfoTab):
self.refresh_window()
elif typ != '' and typ.lower() in config.get('information_buffer_popup_on',