primivitus: info messages now use "info_msg" attribute (yellow)
This commit is contained in:
parent
b41bda0a18
commit
17b1f461db
2 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):
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ class Const(constants.Const):
|
|||
('date', 'light gray', 'default'),
|
||||
('my_nick', 'dark red,bold', 'default'),
|
||||
('other_nick', 'dark cyan,bold', 'default'),
|
||||
('info_msg', 'yellow', 'default', 'bold'),
|
||||
('menubar', 'light gray,bold', 'dark red'),
|
||||
('menubar_focus', 'light gray,bold', 'dark green'),
|
||||
('selected_menu', 'light gray,bold', 'dark green'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue