1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

contacts-box: Use AdwToolbarView with search as top bar

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
Anton Lazarev 2024-01-12 22:38:25 -08:00
parent 9fb5a11c69
commit 8a464224a3

View file

@ -4,40 +4,51 @@
<requires lib="libadwaita" version="0.0"/>
<template class="CallsContactsBox" parent="AdwBin">
<child>
<object class="GtkScrolledWindow" id="child">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="AdwToolbarView" id="child">
<child type="top">
<object class="AdwClamp">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<property name="margin-top">12</property>
<property name="margin-bottom">32</property>
<object class="GtkSearchEntry" id="search_entry">
<property name="margin-start">12</property>
<property name="margin-end">12</property>
</object>
</child>
</object>
</child>
<property name="content">
<object class="GtkScrolledWindow">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="AdwClamp">
<child>
<object class="GtkSearchEntry" id="search_entry"/>
</child>
<child>
<object class="GtkFrame" id="contacts_frame">
<property name="child">
<object class="GtkListBox" id="contacts_listbox">
<child type="placeholder">
<object class="AdwStatusPage" id="placeholder_empty">
<property name="icon_name">edit-find-symbolic</property>
<property name="title" translatable="yes">No Contacts Found</property>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<property name="margin-top">12</property>
<property name="margin-bottom">32</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<child>
<object class="GtkFrame" id="contacts_frame">
<property name="child">
<object class="GtkListBox" id="contacts_listbox">
<child type="placeholder">
<object class="AdwStatusPage" id="placeholder_empty">
<property name="icon_name">edit-find-symbolic</property>
<property name="title" translatable="yes">No Contacts Found</property>
</object>
</child>
</object>
</child>
</property>
</object>
</property>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</property>
</object>
</child>
</template>