diff --git a/src/common/config.py b/src/common/config.py index 76a6c0170..4f789ad76 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -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 = { diff --git a/src/conversation_textview.py b/src/conversation_textview.py index 5b6e7d9c7..d4776a4d8 100644 --- a/src/conversation_textview.py +++ b/src/conversation_textview.py @@ -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') diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index 1b50da6c0..bf1aa924c 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -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]