Commit 2013e4d2 authored by Philipp Hörist's avatar Philipp Hörist

StartChat: Use better icon for muclumbus search

parent 6a116676
......@@ -58,7 +58,7 @@
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">content-loading-symbolic</property>
<property name="icon_name">feather-globe-symbolic</property>
</object>
</child>
</object>
......
......@@ -241,6 +241,7 @@ button.flat.link { padding: 0; border: 0; }
.success-color { color: @success_color; }
.error-color { color: @error_color; }
.warning-color { color: @warning_color; }
.selected-color { color: @theme_selected_bg_color; }
/*Encryption*/
.encrypted-color { color: rgb(75, 181, 67) }
......
......@@ -346,11 +346,14 @@ class StartChatDialog(Gtk.ApplicationWindow):
def _on_global_search_toggle(self, button):
self._ui.search_entry.set_text('')
self._ui.search_entry.grab_focus()
image_style_context = button.get_children()[0].get_style_context()
if button.get_active():
image_style_context.add_class('selected-color')
self._set_listbox(self._global_search_listbox)
self._remove_new_jid_row()
self._ui.listbox.invalidate_filter()
else:
image_style_context.remove_class('selected-color')
self._set_listbox(self._ui.listbox)
self._global_search_listbox.remove_all()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment