<?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="AdwStatusPage" id="placeholder">
    <property name="icon-name">bluetooth-active-symbolic</property>
    <property name="title" translatable="yes">Scanning...</property>
    <property name="description" translatable="yes">Looking for nearby MeshCore devices</property>
  </object>
  <object class="AdwDialog" id="dialog">
    <property name="title" translatable="yes">Pair New Companion</property>
    <property name="content-width">420</property>
    <property name="content-height">480</property>
    <property name="child">
      <object class="AdwToolbarView">
        <child type="top">
          <object class="AdwHeaderBar"/>
        </child>
        <property name="content">
          <object class="GtkBox" id="content">
            <property name="orientation">vertical</property>
            <property name="spacing">8</property>
            <property name="margin-start">8</property>
            <property name="margin-end">8</property>
            <property name="margin-bottom">8</property>

            <!-- Status with spinner -->
            <child>
              <object class="GtkBox" id="status_box">
                <property name="spacing">8</property>
                <property name="halign">center</property>
                <child>
                  <object class="GtkSpinner" id="spinner">
                    <property name="spinning">true</property>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="status_label">
                    <property name="label" translatable="yes">Scanning for MeshCore devices...</property>
                    <style>
                      <class name="dim-label"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>

            <!-- Device list -->
            <child>
              <object class="GtkScrolledWindow">
                <property name="vexpand">true</property>
                <property name="child">
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <property name="margin-start">8</property>
                    <property name="margin-end">8</property>
                    <property name="margin-top">8</property>
                    <property name="margin-bottom">8</property>
                    <child>
                      <object class="GtkListBox" id="list_box">
                        <property name="selection-mode">none</property>
                        <style>
                          <class name="boxed-list"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </child>

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