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

  <object class="GtkAdjustment" id="show_showdesktop_width_adjustment">
    <property name="lower">1</property>
    <property name="upper">40</property>
    <property name="step_increment">1</property>
    <property name="page_increment">10</property>
  </object>

  <object class="GtkAdjustment" id="show_showdesktop_delay_adjustment">
    <property name="upper">5000</property>
    <property name="step_increment">10</property>
    <property name="page_increment">100</property>
  </object>

  <object class="GtkAdjustment" id="show_showdesktop_time_adjustment">
    <property name="upper">5000</property>
    <property name="step_increment">10</property>
    <property name="page_increment">100</property>
  </object>

  <object class="GtkBox" id="box_show_showdesktop_options">
    <property name="orientation">vertical</property>
    <property name="width-request">600</property>
    <property name="spacing">24</property>
    <property name="margin-top">32</property>
    <property name="margin-bottom">32</property>
    <property name="margin-start">32</property>
    <property name="margin-end">32</property>

    <child>
      <object class="AdwPreferencesGroup">

        <child>
          <object class="AdwActionRow" id="show_showdesktop_width_label">
            <child>
              <object class="GtkSpinButton" id="show_showdesktop_width_spinbutton">
                <property name="valign">center</property>
                <property name="width_chars">4</property>
                <property name="text">1</property>
                <property name="adjustment">show_showdesktop_width_adjustment</property>
                <property name="numeric">True</property>
                <property name="value">1</property>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="AdwActionRow">
            <property name="title" translatable="yes">Override Show Desktop line color</property>
            <child>
              <object class="GtkColorButton" id="override_show_desktop_line_color_colorbutton">
                <property name="receives_default">True</property>
                <property name="valign">center</property>
                <property name="use_alpha">True</property>
              </object>
            </child>
            <child>
              <object class="GtkSwitch" id="override_show_desktop_line_color_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>

      </object>
    </child>

    <child>
      <object class="AdwPreferencesGroup">

        <child>
          <object class="AdwActionRow">
            <property name="title" translatable="yes">Reveal the desktop when hovering the Show Desktop button</property>
            <child>
              <object class="GtkSwitch" id="show_showdesktop_hide_switch">
                <property name="visible">True</property>
                <property name="halign">end</property>
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="AdwActionRow" id="grid_show_showdesktop_hide_options">
            <property name="title" translatable="yes">Delay before revealing the desktop (ms)</property>
            <child>
              <object class="GtkSpinButton" id="show_showdesktop_delay_spinbutton">
                <property name="valign">center</property>
                <property name="width_chars">4</property>
                <property name="text">1</property>
                <property name="adjustment">show_showdesktop_delay_adjustment</property>
                <property name="numeric">True</property>
                <property name="value">1</property>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="AdwActionRow" id="grid_show_showdesktop_hide_options2">
            <property name="title" translatable="yes">Fade duration (ms)</property>
            <child>
              <object class="GtkSpinButton" id="show_showdesktop_time_spinbutton">
                <property name="valign">center</property>
                <property name="width_chars">4</property>
                <property name="text">1</property>
                <property name="adjustment">show_showdesktop_time_adjustment</property>
                <property name="numeric">True</property>
                <property name="value">1</property>
              </object>
            </child>
          </object>
        </child>

      </object>
    </child>

  </object>

</interface>