<?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="dialog">
    <property name="title" translatable="yes">Custom Map Tiles</property>
    <property name="content-width">450</property>
    <property name="content-height">300</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">12</property>
            <property name="margin-start">16</property>
            <property name="margin-end">16</property>
            <property name="margin-top">12</property>
            <property name="margin-bottom">12</property>
            <child>
              <object class="AdwPreferencesGroup" id="group">
                <child>
                  <object class="AdwComboRow" id="type_row">
                    <property name="title" translatable="yes">Type</property>
                  </object>
                </child>
                <child>
                  <object class="AdwEntryRow" id="url_row">
                    <property name="title" translatable="yes">URL Template</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="hint_label">
                <property name="wrap">true</property>
                <property name="xalign">0</property>
                <style>
                  <class name="dim-label"/>
                  <class name="caption"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkBox" id="btn_box">
                <property name="spacing">8</property>
                <property name="halign">end</property>
                <property name="margin-top">4</property>
                <child>
                  <object class="GtkButton" id="clear_btn">
                    <property name="label" translatable="yes">Reset to Default</property>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="apply_btn">
                    <property name="label" translatable="yes">Apply</property>
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </property>
      </object>
    </property>
  </object>
</interface>
