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
3 changed files with 6 additions and 4 deletions
|
@ -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.')],
|
'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.')],
|
'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],
|
'log_contact_status_changes': [opt_bool, True],
|
||||||
|
'restored_messages_color': [opt_str, 'grey'],
|
||||||
}
|
}
|
||||||
|
|
||||||
__options_per_key = {
|
__options_per_key = {
|
||||||
|
|
|
@ -94,8 +94,9 @@ class ConversationTextview(gtk.TextView):
|
||||||
tag = buffer.create_tag('small')
|
tag = buffer.create_tag('small')
|
||||||
tag.set_property('scale', pango.SCALE_SMALL)
|
tag.set_property('scale', pango.SCALE_SMALL)
|
||||||
|
|
||||||
tag = buffer.create_tag('grey')
|
tag = buffer.create_tag('restored_message')
|
||||||
tag.set_property('foreground', '#9e9e9e')
|
color = gajim.config.get('restored_messages_color')
|
||||||
|
tag.set_property('foreground', color)
|
||||||
|
|
||||||
tag = buffer.create_tag('url')
|
tag = buffer.create_tag('url')
|
||||||
tag.set_property('foreground', '#0000ff')
|
tag.set_property('foreground', '#0000ff')
|
||||||
|
|
|
@ -917,8 +917,8 @@ class TabbedChatWindow(chat.Chat):
|
||||||
|
|
||||||
tim = time.localtime(float(row[0]))
|
tim = time.localtime(float(row[0]))
|
||||||
|
|
||||||
self.print_conversation_line(row[2], jid, kind, name, tim,
|
chat.Chat.print_conversation_line(self, row[2], jid, kind, name, tim,
|
||||||
['small'], ['small', 'grey'], ['small', 'grey'], False)
|
['small'], ['small', 'restored_message'], ['small', 'restored_message'], False)
|
||||||
|
|
||||||
if len(rows):
|
if len(rows):
|
||||||
conv_textview = self.conversation_textviews[jid]
|
conv_textview = self.conversation_textviews[jid]
|
||||||
|
|
Loading…
Add table
Reference in a new issue