summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-16 19:50:56 +0200
committermathieui <mathieui@mathieui.net>2012-05-16 19:50:56 +0200
commitda30c8c79f5950ef85296ba8f749b929b1bbbd57 (patch)
tree49ad281e1f5dc317e68751f99475527370d48b40 /src/core.py
parent155914470da7f63d7a41025a17c1fd0827ed7df9 (diff)
downloadpoezio-da30c8c79f5950ef85296ba8f749b929b1bbbd57.tar.gz
poezio-da30c8c79f5950ef85296ba8f749b929b1bbbd57.tar.bz2
poezio-da30c8c79f5950ef85296ba8f749b929b1bbbd57.tar.xz
poezio-da30c8c79f5950ef85296ba8f749b929b1bbbd57.zip
Put color in the topic again
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py
index a89e7b25..ee7fcf2f 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1361,9 +1361,14 @@ class Core(object):
if not subject or not tab:
return
if nick_from:
- self.add_message_to_text_buffer(tab._text_buffer, _("%(nick)s set the subject to: %(subject)s") % {'nick':nick_from, 'subject':subject}, time=None)
+ self.add_message_to_text_buffer(tab._text_buffer,
+ _("\x19%(info_col)s}%(nick)s set the subject to: %(subject)s") %
+ {'info_col': get_theme().COLOR_INFORMATION_TEXT[0], 'nick':nick_from, 'subject':subject},
+ time=None)
else:
- self.add_message_to_text_buffer(tab._text_buffer, _("The subject is: %(subject)s") % {'subject':subject}, time=None)
+ self.add_message_to_text_buffer(tab._text_buffer, _("\x19%(info_col)s}The subject is: %(subject)s") %
+ {'subject':subject, 'info_col': get_theme().COLOR_INFORMATION_TEXT[0]},
+ time=None)
tab.topic = subject
if self.get_tab_by_name(room_from, tabs.MucTab) is self.current_tab():
self.refresh_window()