add markedmsgcolor option to GUI. Fixes #7436
This commit is contained in:
parent
3c04489d03
commit
f956f4b0ba
|
@ -1650,7 +1650,7 @@ $T will be replaced by auto-not-available timeout</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTable" id="table25">
|
<object class="GtkTable" id="table25">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="n_rows">4</property>
|
<property name="n_rows">5</property>
|
||||||
<property name="n_columns">4</property>
|
<property name="n_columns">4</property>
|
||||||
<property name="column_spacing">12</property>
|
<property name="column_spacing">12</property>
|
||||||
<property name="row_spacing">6</property>
|
<property name="row_spacing">6</property>
|
||||||
|
@ -1778,8 +1778,8 @@ $T will be replaced by auto-not-available timeout</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="right_attach">4</property>
|
<property name="right_attach">4</property>
|
||||||
<property name="top_attach">3</property>
|
<property name="top_attach">4</property>
|
||||||
<property name="bottom_attach">4</property>
|
<property name="bottom_attach">5</property>
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="x_options">GTK_FILL</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
@ -2011,6 +2011,57 @@ $T will be replaced by auto-not-available timeout</property>
|
||||||
<property name="y_options"/>
|
<property name="y_options"/>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkHBox" id="hbox2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkColorButton" id="muc_highlight_colorbutton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="color">#000000000000</property>
|
||||||
|
<signal name="color_set" handler="on_muc_highlight_colorbutton_color_set"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="right_attach">2</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
<property name="bottom_attach">4</property>
|
||||||
|
<property name="x_options">GTK_FILL</property>
|
||||||
|
<property name="y_options"/>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="label30">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="label" translatable="yes">Group chat highlight:</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
<property name="bottom_attach">4</property>
|
||||||
|
<property name="x_options">GTK_FILL</property>
|
||||||
|
<property name="y_options"/>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -923,6 +923,9 @@ class PreferencesWindow:
|
||||||
def on_status_msg_colorbutton_color_set(self, widget):
|
def on_status_msg_colorbutton_color_set(self, widget):
|
||||||
self.on_preference_widget_color_set(widget, 'statusmsgcolor')
|
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):
|
def on_conversation_fontbutton_font_set(self, widget):
|
||||||
self.on_preference_widget_font_set(widget, 'conversation_font')
|
self.on_preference_widget_font_set(widget, 'conversation_font')
|
||||||
|
|
||||||
|
@ -943,7 +946,8 @@ class PreferencesWindow:
|
||||||
'outmsgtxtcolor': ['outgoing_msg_colorbutton',
|
'outmsgtxtcolor': ['outgoing_msg_colorbutton',
|
||||||
'outgoing_msg_checkbutton'],
|
'outgoing_msg_checkbutton'],
|
||||||
'statusmsgcolor': 'status_msg_colorbutton',
|
'statusmsgcolor': 'status_msg_colorbutton',
|
||||||
'urlmsgcolor': 'url_msg_colorbutton'}
|
'urlmsgcolor': 'url_msg_colorbutton',
|
||||||
|
'markedmsgcolor': 'muc_highlight_colorbutton'}
|
||||||
for c in col_to_widget:
|
for c in col_to_widget:
|
||||||
col = gajim.config.get(c)
|
col = gajim.config.get(c)
|
||||||
if col:
|
if col:
|
||||||
|
@ -971,7 +975,8 @@ class PreferencesWindow:
|
||||||
'inmsgtxtcolor': 'incoming_msg_colorbutton',
|
'inmsgtxtcolor': 'incoming_msg_colorbutton',
|
||||||
'outmsgtxtcolor': 'outgoing_msg_colorbutton',
|
'outmsgtxtcolor': 'outgoing_msg_colorbutton',
|
||||||
'statusmsgcolor': 'status_msg_colorbutton',
|
'statusmsgcolor': 'status_msg_colorbutton',
|
||||||
'urlmsgcolor': 'url_msg_colorbutton'}
|
'urlmsgcolor': 'url_msg_colorbutton',
|
||||||
|
'markedmsgcolor': 'muc_highlight_colorbutton'}
|
||||||
for c in col_to_widget:
|
for c in col_to_widget:
|
||||||
gajim.config.set(c, gajim.interface.default_colors[c])
|
gajim.config.set(c, gajim.interface.default_colors[c])
|
||||||
self.draw_color_widgets()
|
self.draw_color_widgets()
|
||||||
|
|
|
@ -2723,6 +2723,7 @@ class Interface:
|
||||||
'outmsgtxtcolor': gajim.config.get('outmsgtxtcolor'),
|
'outmsgtxtcolor': gajim.config.get('outmsgtxtcolor'),
|
||||||
'statusmsgcolor': gajim.config.get('statusmsgcolor'),
|
'statusmsgcolor': gajim.config.get('statusmsgcolor'),
|
||||||
'urlmsgcolor': gajim.config.get('urlmsgcolor'),
|
'urlmsgcolor': gajim.config.get('urlmsgcolor'),
|
||||||
|
'markedmsgcolor': gajim.config.get('markedmsgcolor'),
|
||||||
}
|
}
|
||||||
|
|
||||||
self.handlers = {}
|
self.handlers = {}
|
||||||
|
|
Loading…
Reference in New Issue