diff --git a/data/gui/preferences_window.ui b/data/gui/preferences_window.ui index c0f874c8e..e62938a2b 100644 --- a/data/gui/preferences_window.ui +++ b/data/gui/preferences_window.ui @@ -1880,7 +1880,7 @@ $T will be replaced by auto-not-available timeout True False - 4 + 5 4 12 6 @@ -2021,8 +2021,8 @@ $T will be replaced by auto-not-available timeout 4 - 3 - 4 + 4 + 5 GTK_FILL @@ -2287,6 +2287,57 @@ $T will be replaced by auto-not-available timeout + + + + + + + + + True + + + + + + True + True + True + 0 + #000000000000 + + + + False + end + 1 + + + + + 1 + 2 + 3 + 4 + GTK_FILL + + + + + + True + 0 + Group chat highlight: + True + + + 3 + 4 + GTK_FILL + + + diff --git a/src/config.py b/src/config.py index 61f91c455..39453fcf6 100644 --- a/src/config.py +++ b/src/config.py @@ -926,6 +926,9 @@ class PreferencesWindow: def on_status_msg_colorbutton_color_set(self, widget): self.on_preference_widget_color_set(widget, 'statusmsgcolor') + def on_muc_highlight_colorbutton_color_set(self, widget): + self.on_preference_widget_color_set(widget, 'markedmsgcolor') + def on_conversation_fontbutton_font_set(self, widget): self.on_preference_widget_font_set(widget, 'conversation_font') @@ -946,7 +949,8 @@ class PreferencesWindow: 'outmsgtxtcolor': ['outgoing_msg_colorbutton', 'outgoing_msg_checkbutton'], 'statusmsgcolor': 'status_msg_colorbutton', - 'urlmsgcolor': 'url_msg_colorbutton'} + 'urlmsgcolor': 'url_msg_colorbutton', + 'markedmsgcolor': 'muc_highlight_colorbutton'} for c in col_to_widget: col = gajim.config.get(c) if col: @@ -974,7 +978,8 @@ class PreferencesWindow: 'inmsgtxtcolor': 'incoming_msg_colorbutton', 'outmsgtxtcolor': 'outgoing_msg_colorbutton', 'statusmsgcolor': 'status_msg_colorbutton', - 'urlmsgcolor': 'url_msg_colorbutton'} + 'urlmsgcolor': 'url_msg_colorbutton', + 'markedmsgcolor': 'muc_highlight_colorbutton'} for c in col_to_widget: gajim.config.set(c, gajim.interface.default_colors[c]) self.draw_color_widgets() diff --git a/src/gui_interface.py b/src/gui_interface.py index f593f3a92..df2fa26da 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -2665,6 +2665,7 @@ class Interface: 'outmsgtxtcolor': gajim.config.get('outmsgtxtcolor'), 'statusmsgcolor': gajim.config.get('statusmsgcolor'), 'urlmsgcolor': gajim.config.get('urlmsgcolor'), + 'markedmsgcolor': gajim.config.get('markedmsgcolor'), } self.handlers = {}