<?xml version="1.0" encoding="UTF-8"?>

<!--
SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>

SPDX-License-Identifier: GPL-3.0-or-later
-->

<ui version="4.0">
 <class>glaxnimate::gui::DocumentSwatchWidget</class>
 <widget class="QWidget" name="DocumentSwatchWidget">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>312</width>
    <height>276</height>
   </rect>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <item>
    <widget class="color_widgets::Swatch" name="swatch">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="colorSize">
      <size>
       <width>32</width>
       <height>32</height>
      </size>
     </property>
     <property name="showClearColor">
      <bool>true</bool>
     </property>
    </widget>
   </item>
   <item>
    <layout class="QHBoxLayout" name="horizontalLayout_2">
     <item>
      <widget class="QToolButton" name="button_extra">
       <property name="toolTip">
        <string>Swatch</string>
       </property>
       <property name="text">
        <string>Swatch</string>
       </property>
       <property name="icon">
        <iconset theme="open-menu-symbolic">
         <normaloff>.</normaloff>.</iconset>
       </property>
      </widget>
     </item>
     <item>
      <spacer name="horizontalSpacer">
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>40</width>
         <height>20</height>
        </size>
       </property>
      </spacer>
     </item>
     <item>
      <widget class="QToolButton" name="toolButton">
       <property name="toolTip">
        <string>Add color</string>
       </property>
       <property name="text">
        <string>Add</string>
       </property>
       <property name="icon">
        <iconset theme="list-add">
         <normaloff>.</normaloff>.</iconset>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QToolButton" name="toolButton_2">
       <property name="text">
        <string>Remove</string>
       </property>
       <property name="icon">
        <iconset theme="list-remove">
         <normaloff>.</normaloff>.</iconset>
       </property>
      </widget>
     </item>
    </layout>
   </item>
  </layout>
  <action name="action_generate">
   <property name="icon">
    <iconset theme="document-export">
     <normaloff>.</normaloff>.</iconset>
   </property>
   <property name="text">
    <string>Generate</string>
   </property>
   <property name="toolTip">
    <string>Generate Swatch from the open Document</string>
   </property>
  </action>
  <action name="action_save">
   <property name="icon">
    <iconset theme="document-save">
     <normaloff>.</normaloff>.</iconset>
   </property>
   <property name="text">
    <string>Save Palette</string>
   </property>
  </action>
  <action name="action_open">
   <property name="icon">
    <iconset theme="document-open">
     <normaloff>.</normaloff>.</iconset>
   </property>
   <property name="text">
    <string>From Palette...</string>
   </property>
  </action>
 </widget>
 <customwidgets>
  <customwidget>
   <class>color_widgets::Swatch</class>
   <extends>QWidget</extends>
   <header>QtColorWidgets/swatch.hpp</header>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections>
  <connection>
   <sender>toolButton_2</sender>
   <signal>clicked()</signal>
   <receiver>swatch</receiver>
   <slot>removeSelected()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>304</x>
     <y>236</y>
    </hint>
    <hint type="destinationlabel">
     <x>295</x>
     <y>158</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>toolButton</sender>
   <signal>clicked()</signal>
   <receiver>DocumentSwatchWidget</receiver>
   <slot>swatch_add()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>266</x>
     <y>236</y>
    </hint>
    <hint type="destinationlabel">
     <x>317</x>
     <y>406</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>swatch</sender>
   <signal>clicked(int,Qt::KeyboardModifiers)</signal>
   <receiver>DocumentSwatchWidget</receiver>
   <slot>swatch_link(int,Qt::KeyboardModifiers)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>176</x>
     <y>161</y>
    </hint>
    <hint type="destinationlabel">
     <x>254</x>
     <y>481</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>swatch</sender>
   <signal>rightClicked(int,Qt::KeyboardModifiers)</signal>
   <receiver>DocumentSwatchWidget</receiver>
   <slot>swatch_menu(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>124</x>
     <y>111</y>
    </hint>
    <hint type="destinationlabel">
     <x>158</x>
     <y>416</y>
    </hint>
   </hints>
  </connection>
 </connections>
 <slots>
  <slot>swatch_add()</slot>
  <slot>swatch_unlink()</slot>
  <slot>swatch_link(int)</slot>
  <slot>swatch_menu(int)</slot>
 </slots>
</ui>
