<?xml version='1.0' encoding='UTF-8'?>
<interface>
  <!-- interface-name BoxOverlayShortcut.ui -->
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.3"/>
  <object class="GtkAdjustment" id="shortcut_time_adjustment">
    <property name="page-increment">1000</property>
    <property name="step-increment">250</property>
    <property name="upper">10000</property>
  </object>
  <object class="GtkBox" id="box_overlay_shortcut">
    <property name="margin-bottom">32</property>
    <property name="margin-end">32</property>
    <property name="margin-start">32</property>
    <property name="margin-top">32</property>
    <property name="orientation">vertical</property>
    <property name="spacing">24</property>
    <property name="width-request">600</property>
    <child>
      <object class="AdwPreferencesGroup">
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">Hotkeys will either be Super+Number or Super+Alt+Num</property>
            <property name="title" translatable="yes">Hotkeys prefix</property>
            <child>
              <object class="GtkComboBoxText" id="hotkey_prefix_combo">
                <property name="valign">center</property>
                <items>
                  <item id="Super" translatable="yes">Super</item>
                  <item id="SuperAlt" translatable="yes">Super + Alt</item>
                </items>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">Temporarily show the application numbers over the icons when using the hotkeys.</property>
            <property name="title" translatable="yes">Number overlay</property>
            <child>
              <object class="GtkComboBoxText" id="overlay_combo">
                <property name="valign">center</property>
                <items>
                  <item id="NEVER" translatable="yes">Never</item>
                  <item id="TEMPORARILY" translatable="yes">Show temporarily</item>
                  <item id="ALWAYS" translatable="yes">Always visible</item>
                </items>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="title" translatable="yes">Hide timeout (ms)</property>
            <child>
              <object class="GtkSpinButton" id="timeout_spinbutton">
                <property name="adjustment">shortcut_time_adjustment</property>
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">Syntax: &amp;lt;Shift&amp;gt;, &amp;lt;Ctrl&amp;gt;, &amp;lt;Alt&amp;gt;, &amp;lt;Super&amp;gt;</property>
            <property name="title" translatable="yes">Shortcut to show the overlay for 2 seconds</property>
            <child>
              <object class="GtkEntry" id="shortcut_entry">
                <property name="placeholder-text" translatable="yes">e.g. &lt;Super&gt;q</property>
                <property name="valign">center</property>
                <property name="width-chars">12</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">On secondary monitors, show the overlay on icons matching the primary monitor</property>
            <property name="title" translatable="yes">Show the overlay on all monitors</property>
            <child>
              <object class="GtkSwitch" id="overlay_on_secondary_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">Show previews when the application have multiple instances</property>
            <property name="title" translatable="yes">Show window previews on hotkey</property>
            <child>
              <object class="GtkSwitch" id="shortcut_preview_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">Select which keyboard number keys are used to activate the hotkeys</property>
            <property name="title" translatable="yes">Hotkeys are activated with</property>
            <child>
              <object class="GtkComboBoxText" id="shortcut_num_keys_combo">
                <property name="valign">center</property>
                <items>
                  <item id="NUM_ROW" translatable="yes">Number row</item>
                  <item id="NUM_KEYPAD" translatable="yes">Numeric keypad</item>
                  <item id="BOTH" translatable="yes">Both</item>
                </items>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>
