primivitus: info messages now use "info_msg" attribute (yellow)
This commit is contained in:
parent
b41bda0a18
commit
17b1f461db
1 changed files with 5 additions and 1 deletions
|
|
@ -73,7 +73,10 @@ class ChatText(urwid.FlowWidget):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue