messages for us in gc are now bold and colored (thx Liorothiel)

This commit is contained in:
Yann Leboulanger 2005-06-16 19:14:07 +00:00
parent c8330db808
commit 213c617780
3 changed files with 10 additions and 2 deletions

View File

@ -272,6 +272,11 @@ class Chat:
color = gajim.config.get('statusmsgcolor')
self.tagStatus[jid].set_property('foreground', color)
tag = conversation_buffer.create_tag('marked')
color = gajim.config.get('markedmsgcolor')
tag.set_property('foreground', color)
tag.set_property('weight', pango.WEIGHT_BOLD)
tag = conversation_buffer.create_tag('time_sometimes')
tag.set_property('foreground', '#9e9e9e')
tag.set_property('scale', pango.SCALE_SMALL)

View File

@ -59,6 +59,7 @@ class Config:
'inmsgcolor': [ opt_color, '#a34526' ],
'outmsgcolor': [ opt_color, '#164e6f' ],
'statusmsgcolor': [ opt_color, '#1eaa1e' ],
'markedmsgcolor': [ opt_color, '#ff8080' ],
'collapsed_rows': [ opt_str, '' ],
'roster_theme': [ opt_str, 'green' ],
'saveposition': [ opt_bool, True ],

View File

@ -471,6 +471,7 @@ class GroupchatWindow(chat.Chat):
if contact is set: it's a message from someone
if contact is not set: it's a message from the server"""
other_tags_for_name = []
other_tags_for_text = []
if contact:
if contact == self.nicks[room_jid]:
kind = 'outgoing'
@ -483,9 +484,10 @@ class GroupchatWindow(chat.Chat):
text.lower().split() or self.nicks[room_jid].lower() + ',' in \
text.lower().split()):
other_tags_for_name.append('bold')
other_tags_for_text.append('marked')
chat.Chat.print_conversation_line(self, text, room_jid, kind, contact,
tim, other_tags_for_name)
tim, other_tags_for_name, [], other_tags_for_text)
def kick(self, widget, room_jid, nick):
"""kick a user"""