<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.0"/>

  <template class="IconPickerDialog" parent="AdwDialog">
    <property name="title">Choose Icon</property>
    <property name="content-width">400</property>
    <property name="content-height">450</property>

    <child>
      <object class="AdwToolbarView">
        <child type="top">
          <object class="AdwHeaderBar">
            <property name="show-title">true</property>
          </object>
        </child>

        <property name="content">
          <object class="GtkScrolledWindow">
            <property name="vexpand">true</property>
            <child>
              <object class="GtkBox">
                <property name="orientation">vertical</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>
                <property name="spacing">12</property>

                <child>
                  <object class="GtkLabel">
                    <property name="label">Select an icon for your project:</property>
                    <property name="xalign">0</property>
                  </object>
                </child>

                <child>
                  <object class="GtkFlowBox" id="icon_flowbox">
                    <property name="column-spacing">6</property>
                    <property name="row-spacing">6</property>
                    <property name="homogeneous">true</property>
                    <property name="max-children-per-line">6</property>
                    <property name="min-children-per-line">6</property>
                    <property name="selection-mode">single</property>
                    <signal name="child-activated" handler="on_icon_selected"/>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
  </template>
</interface>
