<?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="MeshyConnectionView" parent="GtkBox">
    <property name="orientation">vertical</property>
    <child>
      <object class="GtkScrolledWindow">
        <property name="vexpand">true</property>
        <child>
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <property name="spacing">12</property>
            <property name="margin-start">12</property>
            <property name="margin-end">12</property>
            <property name="margin-top">12</property>
            <property name="margin-bottom">12</property>

            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">Connect to a companion device to start using Meshy.</property>
                <property name="wrap">true</property>
                <property name="margin-bottom">12</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>

            <!-- Bluetooth -->
            <child>
              <object class="AdwPreferencesGroup" id="paired_group">
                <property name="title" translatable="yes">Bluetooth</property>
                <child>
                  <object class="GtkListBox" id="paired_list">
                    <property name="selection-mode">none</property>
                    <style>
                      <class name="boxed-list"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="pair_btn">
                <property name="label" translatable="yes">Pair with a New Companion</property>
                <property name="margin-top">4</property>
              </object>
            </child>

            <!-- USB Serial -->
            <child>
              <object class="AdwPreferencesGroup" id="usb_group">
                <property name="title" translatable="yes">USB Serial</property>
                <child>
                  <object class="GtkListBox" id="usb_list">
                    <property name="selection-mode">none</property>
                    <style>
                      <class name="boxed-list"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>

            <!-- WiFi / TCP -->
            <child>
              <object class="AdwPreferencesGroup" id="tcp_group">
                <property name="title" translatable="yes">WiFi / TCP</property>
                <child>
                  <object class="GtkListBox" id="tcp_list">
                    <property name="selection-mode">none</property>
                    <style>
                      <class name="boxed-list"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="tcp_add_btn">
                <property name="label" translatable="yes">Add TCP Companion</property>
                <property name="margin-top">4</property>
              </object>
            </child>

          </object>
        </child>
      </object>
    </child>
  </template>
</interface>
