<?xml version='1.0' encoding='UTF-8'?>
<interface>
  <!-- interface-name SettingsPosition.ui -->
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.6"/>
  <object class="GtkAdjustment" id="panel_size_adjustment">
    <property name="lower">0.33</property>
    <property name="page-increment">0.1</property>
    <property name="step-increment">0.01</property>
    <property name="upper">1</property>
  </object>
  <object class="GtkAdjustment" id="panel_length_adjustment">
    <property name="page-increment">0.1</property>
    <property name="step-increment">0.01</property>
    <property name="upper">1</property>
  </object>
  <object class="AdwPreferencesPage" id="position">
    <property name="icon-name">find-location-symbolic</property>
    <property name="title" translatable="yes">Position</property>
    <child>
      <object class="AdwPreferencesGroup" id="position_group_panel">
        <property name="title" translatable="yes">Panel</property>
        <child>
          <object class="AdwActionRow">
            <property name="title" translatable="yes">Display the main panel on</property>
            <child>
              <object class="GtkComboBoxText" id="multimon_primary_combo">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="title" translatable="yes">Display panels on all monitors</property>
            <child>
              <object class="GtkSwitch" id="multimon_multi_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup" id="position_group_panel2">
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">Hide and reveal the panel according to preferences</property>
            <property name="title" translatable="yes">Panel Intellihide</property>
            <child>
              <object class="GtkButton" id="intellihide_options_button">
                <property name="receives-default">True</property>
                <property name="valign">center</property>
                <child>
                  <object class="GtkImage" id="image_intellihide_options">
                    <property name="icon-name">emblem-system-symbolic</property>
                  </object>
                </child>
                <style>
                  <class name="circular"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkSwitch" id="intellihide_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup" id="position_group_on_monitor">
        <property name="title" translatable="yes">Order and Position on monitors</property>
        <child>
          <object class="AdwPreferencesRow">
            <property name="title" translatable="yes">Monitor</property>
            <child>
              <object class="GtkBox">
                <property name="margin-bottom">6</property>
                <property name="margin-end">6</property>
                <property name="margin-start">6</property>
                <property name="margin-top">6</property>
                <child>
                  <object class="GtkCheckButton" id="taskbar_position_sync_button">
                    <property name="halign">start</property>
                    <property name="hexpand">True</property>
                    <property name="label" translatable="yes">Apply changes to all monitors</property>
                    <property name="receives-default">False</property>
                  </object>
                </child>
                <child>
                  <object class="GtkComboBoxText" id="taskbar_position_monitor_combo">
                    <property name="halign">end</property>
                    <property name="hexpand">True</property>
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup" id="position_group_on_monitor2">
        <child>
          <object class="AdwActionRow">
            <property name="title" translatable="yes">Panel monitor position</property>
            <child>
              <object class="GtkToggleButton" id="position_bottom_button">
                <property name="active">True</property>
                <property name="label" translatable="yes">Bottom</property>
                <property name="receives-default">False</property>
                <property name="valign">center</property>
                <signal name="clicked" handler="position_bottom_button_clicked_cb"/>
              </object>
            </child>
            <child>
              <object class="GtkToggleButton" id="position_top_button">
                <property name="group">position_bottom_button</property>
                <property name="label" translatable="yes">Top</property>
                <property name="receives-default">False</property>
                <property name="valign">center</property>
                <signal name="clicked" handler="position_top_button_clicked_cb"/>
              </object>
            </child>
            <child>
              <object class="GtkToggleButton" id="position_left_button">
                <property name="group">position_bottom_button</property>
                <property name="label" translatable="yes">Left</property>
                <property name="receives-default">False</property>
                <property name="valign">center</property>
                <signal name="clicked" handler="position_left_button_clicked_cb"/>
              </object>
            </child>
            <child>
              <object class="GtkToggleButton" id="position_right_button">
                <property name="group">position_bottom_button</property>
                <property name="label" translatable="yes">Right</property>
                <property name="receives-default">False</property>
                <property name="valign">center</property>
                <signal name="clicked" handler="position_right_button_clicked_cb"/>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">(default is 48)</property>
            <property name="title" translatable="yes">Panel thickness</property>
            <child>
              <object class="GtkScale" id="panel_size_scale">
                <property name="adjustment">panel_size_adjustment</property>
                <property name="digits">0</property>
                <property name="draw-value">True</property>
                <property name="round-digits">0</property>
                <property name="value-pos">right</property>
                <property name="width-request">300</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow">
            <property name="subtitle" translatable="yes">(default is 100)</property>
            <property name="title" translatable="yes">Panel length</property>
            <child>
              <object class="GtkCheckButton" id="panel_length_dynamic_button">
                <property name="halign">start</property>
                <property name="hexpand">True</property>
                <property name="label" translatable="yes">Dynamic</property>
                <property name="receives-default">False</property>
              </object>
            </child>
            <child>
              <object class="GtkScale" id="panel_length_scale">
                <property name="adjustment">panel_length_adjustment</property>
                <property name="digits">0</property>
                <property name="draw-value">True</property>
                <property name="round-digits">0</property>
                <property name="value-pos">right</property>
                <property name="width-request">300</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="panel_anchor_label">
            <property name="title" translatable="yes">Anchor</property>
            <child>
              <object class="GtkComboBoxText" id="panel_anchor_combo">
                <property name="valign">center</property>
                <items>
                  <item id="START" translatable="yes">Start</item>
                  <item id="MIDDLE" translatable="yes">Middle</item>
                  <item id="END" translatable="yes">End</item>
                </items>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup" id="position_group_on_monitor3">
        <child>
          <object class="AdwPreferencesRow">
            <property name="title" translatable="yes">Taskbar Display</property>
            <child>
              <object class="GtkListBox" id="taskbar_display_listbox">
                <property name="margin-bottom">6</property>
                <property name="margin-top">6</property>
                <property name="selection-mode">none</property>
                <property name="visible">True</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>
