<?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"/>

  <template class="MeshyContactsView" parent="GtkBox">
    <property name="orientation">vertical</property>

    <!-- Search entry (toggled by search button) -->
    <child>
      <object class="GtkSearchEntry" id="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>

    <!-- Scrolled list -->
    <child>
      <object class="GtkScrolledWindow">
        <property name="vexpand">true</property>
        <property name="child">
          <object class="GtkListBox" id="list_box">
            <property name="selection-mode">single</property>
            <style>
              <class name="navigation-sidebar"/>
            </style>
          </object>
        </property>
      </object>
    </child>

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

    <!-- Add Contact button -->
    <child>
      <object class="GtkMenuButton" id="add_btn">
        <property name="label" translatable="yes">Add Contact</property>
        <property name="margin-start">8</property>
        <property name="margin-end">8</property>
        <property name="margin-top">4</property>
        <property name="margin-bottom">8</property>
      </object>
    </child>

  </template>
</interface>
