<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.96.1 -->
<interface domain="panorama-panel">
  <!-- interface-name panel-configurator.ui -->
  <!-- interface-description Provides a widget that contains settings for a panel. -->
  <!-- interface-copyright Copyright 2025, roundabout-host.com <vlad@roundabout-host.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Licence as published by
the Free Software Foundation, either version 3 of the Licence, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public Licence for more details.

You should have received a copy of the GNU General Public Licence
along with this program. If not, see <https://www.gnu.org/licenses/>. -->
  <requires lib="gtk" version="4.2"/>
  <template class="PanelConfigurator" parent="GtkFrame">
    <property name="valign">start</property>
    <child>
      <object class="GtkFrame">
        <property name="valign">start</property>
        <child>
          <object class="GtkListBox">
            <property name="selection-mode">none</property>
            <child>
              <object class="GtkListBoxRow">
                <property name="activatable">False</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkBox">
                        <child>
                          <object class="GtkLabel">
                            <property name="label" translatable="yes">Thic_kness</property>
                            <property name="use-underline">True</property>
                            <property name="width-request">128</property>
                            <property name="wrap">True</property>
                            <property name="xalign">-0.0</property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkScale">
                            <property name="adjustment">
                              <object class="GtkAdjustment" id="panel_size_adjustment">
                                <property name="lower">12.0</property>
                                <property name="page-increment">1.0</property>
                                <property name="page-size">1.0</property>
                                <property name="step-increment">1.0</property>
                                <property name="upper">192.0</property>
                                <property name="value">48.0</property>
                                <signal name="value-changed" handler="update_panel_size"/>
                              </object>
                            </property>
                            <property name="digits">0</property>
                            <property name="hexpand">True</property>
                            <property name="round-digits">0</property>
                            <marks/>
                          </object>
                        </child>
                        <child>
                          <object class="GtkSpinButton" id="thickness_spinbutton">
                            <property name="adjustment">panel_size_adjustment</property>
                            <property name="numeric">True</property>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel">
                        <property name="label" translatable="yes">Depending on your theme and your applets, the panel may be larger than the set size.</property>
                        <property name="wrap">True</property>
                        <property name="xalign">0.0</property>
                        <attributes>
                          <attribute name="weight" value="light"/>
                        </attributes>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkListBoxRow">
                <property name="activatable">False</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkBox">
                        <child>
                          <object class="GtkLabel">
                            <property name="label" translatable="yes">Automatically _hide</property>
                            <property name="use-underline">True</property>
                            <property name="width-request">128</property>
                            <property name="wrap">True</property>
                            <property name="xalign">-0.0</property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkSwitch" id="autohide_switch">
                            <property name="halign">end</property>
                            <property name="hexpand">True</property>
                            <property name="valign">center</property>
                            <signal name="state-set" handler="toggle_autohide"/>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel">
                        <property name="label" translatable="yes">Only show the panel while the cursor is over it or a menu is being used</property>
                        <property name="wrap">True</property>
                        <property name="xalign">0.0</property>
                        <attributes>
                          <attribute name="weight" value="light"/>
                        </attributes>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkListBoxRow">
                <property name="activatable">False</property>
                <child>
                  <object class="GtkGrid">
                    <property name="column-homogeneous">True</property>
                    <property name="row-homogeneous">True</property>
                    <child>
                      <object class="GtkCheckButton" id="top_position_radio">
                        <property name="group">top_position_radio</property>
                        <property name="label" translatable="yes">_Top</property>
                        <property name="use-underline">True</property>
                        <signal name="toggled" handler="move_panel"/>
                        <layout>
                          <property name="column">1</property>
                          <property name="column-span">2</property>
                          <property name="row">0</property>
                          <property name="row-span">1</property>
                        </layout>
                      </object>
                    </child>
                    <child>
                      <object class="GtkCheckButton" id="left_position_radio">
                        <property name="group">top_position_radio</property>
                        <property name="label" translatable="yes">_Left</property>
                        <property name="use-underline">True</property>
                        <signal name="toggled" handler="move_panel"/>
                        <layout>
                          <property name="column">0</property>
                          <property name="column-span">1</property>
                          <property name="row">1</property>
                          <property name="row-span">1</property>
                        </layout>
                      </object>
                    </child>
                    <child>
                      <object class="GtkCheckButton" id="bottom_position_radio">
                        <property name="group">top_position_radio</property>
                        <property name="label" translatable="yes">_Bottom</property>
                        <property name="use-underline">True</property>
                        <signal name="toggled" handler="move_panel"/>
                        <layout>
                          <property name="column">1</property>
                          <property name="column-span">2</property>
                          <property name="row">2</property>
                          <property name="row-span">1</property>
                        </layout>
                      </object>
                    </child>
                    <child>
                      <object class="GtkCheckButton" id="right_position_radio">
                        <property name="group">top_position_radio</property>
                        <property name="label" translatable="yes">_Right</property>
                        <property name="use-underline">True</property>
                        <signal name="toggled" handler="move_panel"/>
                        <layout>
                          <property name="column">3</property>
                          <property name="column-span">1</property>
                          <property name="row">1</property>
                          <property name="row-span">1</property>
                        </layout>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel">
                        <property name="label" translatable="yes">_Monitor number: </property>
                        <property name="use-underline">True</property>
                        <property name="xalign">-0.0</property>
                        <layout>
                          <property name="column">1</property>
                          <property name="column-span">1</property>
                          <property name="row">1</property>
                          <property name="row-span">1</property>
                        </layout>
                      </object>
                    </child>
                    <child>
                      <object class="GtkSpinButton" id="monitor_number_spinbutton">
                        <property name="adjustment">
                          <object class="GtkAdjustment" id="monitor_number_adjustment">
                            <property name="page-increment">1.0</property>
                            <property name="page-size">1.0</property>
                            <property name="step-increment">1.0</property>
                            <property name="upper">64.0</property>
                            <signal name="value-changed" handler="move_to_monitor"/>
                          </object>
                        </property>
                        <layout>
                          <property name="column">2</property>
                          <property name="column-span">1</property>
                          <property name="row">1</property>
                          <property name="row-span">1</property>
                        </layout>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>
