<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2026, Jiri Eischmann <jiri@eischmann.cz> and the meshy contributors -->
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.0"/>
  <object class="AdwDialog" id="share_dialog">
    <property name="title" translatable="yes">Share Contact</property>
    <property name="content-width">420</property>
    <property name="content-height">520</property>
    <property name="child">
      <object class="AdwToolbarView">
        <child type="top">
          <object class="AdwHeaderBar">
            <child type="start">
              <object class="GtkToggleButton" id="share_search_btn">
                <property name="icon-name">system-search-symbolic</property>
                <property name="tooltip-text" translatable="yes">Search</property>
                <style>
                  <class name="flat"/>
                </style>
              </object>
            </child>
          </object>
        </child>
        <property name="content">
          <object class="GtkBox">
            <property name="orientation">vertical</property>

            <child>
              <object class="GtkSearchEntry" id="share_search_entry">
                <property name="placeholder-text" translatable="yes">Search...</property>
                <property name="margin-start">8</property>
                <property name="margin-end">8</property>
                <property name="margin-bottom">6</property>
                <property name="visible">false</property>
              </object>
            </child>

            <child>
              <object class="GtkScrolledWindow">
                <property name="vexpand">true</property>
                <property name="child">
                  <object class="GtkListView" id="share_list_view">
                    <property name="single-click-activate">true</property>
                  </object>
                </property>
              </object>
            </child>

            <child>
              <object class="GtkLabel" id="share_status_label">
                <property name="label" translatable="yes">No contacts</property>
                <property name="margin-top">4</property>
                <property name="margin-bottom">4</property>
                <style>
                  <class name="dim-label"/>
                  <class name="caption"/>
                </style>
              </object>
            </child>

          </object>
        </property>
      </object>
    </property>
  </object>
</interface>
