diff frontends/src/primitivus/chat.py @ 1173:cae023216bba

primivitus: info messages now use "info_msg" attribute (yellow)
author Goffi <goffi@goffi.org>
date Fri, 05 Sep 2014 19:29:30 +0200
parents c0f15e52695a
children 69aace10b46d
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py	Fri Sep 05 19:29:30 2014 +0200
+++ b/frontends/src/primitivus/chat.py	Fri Sep 05 19:29:30 2014 +0200
@@ -73,7 +73,10 @@
             else:
                 render_txt.append(('my_nick' if self.my_mess else 'other_nick',"[%s] " % self.nick))
         render_txt.append(self.message)
-        return urwid.Text(render_txt, align=self.align)
+        txt_widget = urwid.Text(render_txt, align=self.align)
+        if self.is_info:
+            return urwid.AttrMap(txt_widget, 'info_msg')
+        return txt_widget
 
 
 class Chat(urwid.WidgetWrap, QuickChat):