ACE: restored_messages_color. you can now configure from grey to blue, red, green whatever you like
This commit is contained in:
parent
359824bec1
commit
97371d384c
|
@ -162,6 +162,7 @@ class Config:
|
|||
'ask_avatars_on_startup': [opt_bool, True, _('If True, Gajim will ask for avatar each contact that did not have an avatar last time or has one cache that is too old.')],
|
||||
'print_status_in_chats': [opt_bool, True, _('If False, you will no longer see status line in chats when a contact changes his or her status and/or his status message.')],
|
||||
'log_contact_status_changes': [opt_bool, True],
|
||||
'restored_messages_color': [opt_str, 'grey'],
|
||||
}
|
||||
|
||||
__options_per_key = {
|
||||
|
|
|
@ -94,8 +94,9 @@ class ConversationTextview(gtk.TextView):
|
|||
tag = buffer.create_tag('small')
|
||||
tag.set_property('scale', pango.SCALE_SMALL)
|
||||
|
||||
tag = buffer.create_tag('grey')
|
||||
tag.set_property('foreground', '#9e9e9e')
|
||||
tag = buffer.create_tag('restored_message')
|
||||
color = gajim.config.get('restored_messages_color')
|
||||
tag.set_property('foreground', color)
|
||||
|
||||
tag = buffer.create_tag('url')
|
||||
tag.set_property('foreground', '#0000ff')
|
||||
|
|
|
@ -917,8 +917,8 @@ class TabbedChatWindow(chat.Chat):
|
|||
|
||||
tim = time.localtime(float(row[0]))
|
||||
|
||||
self.print_conversation_line(row[2], jid, kind, name, tim,
|
||||
['small'], ['small', 'grey'], ['small', 'grey'], False)
|
||||
chat.Chat.print_conversation_line(self, row[2], jid, kind, name, tim,
|
||||
['small'], ['small', 'restored_message'], ['small', 'restored_message'], False)
|
||||
|
||||
if len(rows):
|
||||
conv_textview = self.conversation_textviews[jid]
|
||||
|
|
Loading…
Reference in New Issue