<?xml version="1.0" encoding="UTF-8"?>
<interface domain="drawing">
  <object class="GtkBox" id="main-box">
    <property name="visible">True</property>
    <property name="margin">10</property>
    <property name="spacing">10</property>
    <property name="orientation">vertical</property>
    <child>
      <object class="GtkBox">
        <property name="visible">True</property>
        <property name="spacing">10</property>
        <property name="orientation">horizontal</property>
        <child>
          <object class="GtkLabel" id="popover-title">
            <property name="visible">True</property>
            <property name="label">set by python code</property>
            <style><class name="dim-label"/></style>
          </object>
        </child>

        <child>
          <object class="GtkBox" id="operator-box-start">
            <property name="visible">True</property>
            <property name="orientation">horizontal</property>
            <property name="tooltip-text" translatable="yes">How the color will be applied to the existing pixels</property>
            <style><class name="linked"/></style>
            <child>
              <object class="GtkRadioButton" id="op-group">
                <property name="visible">True</property>
                <property name="draw-indicator">False</property>
                <property name="label" translatable="yes">Normal</property>
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'over'</property>
              </object>
            </child>
            <child>
              <object class="GtkMenuButton" id="op-menubtn">
                <property name="visible">True</property>
                <property name="menu-model">other-operators-menu</property>
                <child>
                  <object class="GtkImage">
                    <property name="visible">True</property>
                    <property name="icon-name">pan-down-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkRadioButton">
                <property name="group">op-group</property>
                <!-- <property name="visible">True</property> -->
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'source'</property>
              </object>
            </child>
            <child>
              <object class="GtkRadioButton">
                <property name="group">op-group</property>
                <!-- <property name="visible">True</property> -->
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'multiply'</property>
              </object>
            </child>
            <child>
              <object class="GtkRadioButton">
                <property name="group">op-group</property>
                <!-- <property name="visible">True</property> -->
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'difference'</property>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="GtkBox">
            <!-- <property name="visible">True</property> -->
            <property name="orientation">horizontal</property>
            <style><class name="linked"/></style>
            <child>
              <object class="GtkRadioButton">
                <property name="group">op-group</property>
                <!-- <property name="visible">True</property> -->
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'hsl-hue'</property>
              </object>
            </child>
            <child>
              <object class="GtkRadioButton">
                <property name="group">op-group</property>
                <!-- <property name="visible">True</property> -->
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'hsl-saturation'</property>
              </object>
            </child>
            <child>
              <object class="GtkRadioButton">
                <property name="group">op-group</property>
                <!-- <property name="visible">True</property> -->
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'hsl-color'</property>
              </object>
            </child>
            <child>
              <object class="GtkRadioButton">
                <property name="group">op-group</property>
                <!-- <property name="visible">True</property> -->
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'hsl-luminosity'</property>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="GtkBox" id="operator-box-end">
            <property name="visible">True</property>
            <property name="orientation">horizontal</property>
            <property name="tooltip-text" translatable="yes">Don't use the colors but…</property>
            <style><class name="linked"/></style>
            <child>
              <object class="GtkRadioButton">
                <property name="visible">True</property>
                <property name="group">op-group</property>
                <property name="draw-indicator">False</property>
                <!-- To translators: this is a verb -->
                <property name="label" translatable="yes">Blur</property>
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'dest-in'</property>
              </object>
            </child>
            <child>
              <object class="GtkRadioButton">
                <property name="visible">True</property>
                <property name="group">op-group</property>
                <property name="draw-indicator">False</property>
                <property name="label" translatable="yes">Erase</property>
                <property name="action-name">win.cairo_op_mirror</property>
                <property name="action-target">'clear'</property>
              </object>
            </child>
          </object>
          <packing>
            <property name="pack-type">end</property>
          </packing>
        </child>

      </object>
    </child>
    <child>
      <object class="GtkColorChooserWidget" id="color-widget">
        <property name="visible">True</property>
        <property name="use-alpha">True</property>
      </object>
    </child>
    <child>
      <object class="GtkBox" id="editor-box">
        <property name="visible">True</property>
        <property name="spacing">10</property>
        <property name="orientation">horizontal</property>
        <child>
          <object class="GtkButton" id="back-btn">
            <property name="visible">True</property>
            <property name="tooltip-text" translatable="yes">Back to the palette</property>
            <child>
              <object class="GtkBox">
                <property name="visible">True</property>
                <property name="spacing">10</property>
                <child>
                  <object class="GtkImage">
                    <property name="visible">True</property>
                    <property name="icon-name">go-previous-symbolic</property>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel">
                    <property name="visible">True</property>
                    <property name="label" translatable="yes">Palette</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
          <packing>
            <property name="pack-type">start</property>
          </packing>
        </child>
        <child>
          <object class="GtkCheckButton">
            <property name="label" translatable="yes">Use this editor by default</property>
            <property name="visible">True</property>
            <property name="action-name">app.use_editor</property>
          </object>
          <packing>
            <property name="pack-type">end</property>
          </packing>
        </child>
      </object>
    </child>
  </object>

  <!-- -->

  <menu id="other-operators-menu">
    <section>
      <!-- Context: possible ways to apply the color to the canvas -->
      <attribute name="label" translatable="yes">Other modes</attribute>
      <item>
        <!-- Context: a possible way to apply the color to the canvas -->
        <attribute name="label" translatable="yes">Raw source color</attribute>
        <attribute name="action">win.cairo_operator</attribute>
        <attribute name="target">source</attribute>
      </item>
      <item>
        <!-- Context: a possible way to apply the color to the canvas -->
        <attribute name="label" translatable="yes">Highlight</attribute>
        <attribute name="action">win.cairo_operator</attribute>
        <attribute name="target">multiply</attribute>
      </item>
      <item>
        <!-- Context: a possible way to apply the color to the canvas -->
        <attribute name="label" translatable="yes">Difference</attribute>
        <attribute name="action">win.cairo_operator</attribute>
        <attribute name="target">difference</attribute>
      </item>
      <!-- and more...? -->
    </section>
    <submenu>
      <!-- Context: possible ways to apply the color to the canvas -->
      <attribute name="label" translatable="yes">Photo-oriented modes</attribute>
      <item>
        <!-- Context: a possible way to apply the color to the canvas -->
        <attribute name="label" translatable="yes">Hue only</attribute>
        <attribute name="action">win.cairo_operator</attribute>
        <attribute name="target">hsl-hue</attribute>
      </item>
      <item>
        <!-- Context: a possible way to apply the color to the canvas -->
        <attribute name="label" translatable="yes">Saturation only</attribute>
        <attribute name="action">win.cairo_operator</attribute>
        <attribute name="target">hsl-saturation</attribute>
      </item>
      <item>
        <!-- Context: a possible way to apply the color to the canvas -->
        <attribute name="label" translatable="yes">Hue and saturation</attribute>
        <attribute name="action">win.cairo_operator</attribute>
        <attribute name="target">hsl-color</attribute>
      </item>
      <item>
        <!-- Context: a possible way to apply the color to the canvas -->
        <attribute name="label" translatable="yes">Luminosity only</attribute>
        <attribute name="action">win.cairo_operator</attribute>
        <attribute name="target">hsl-luminosity</attribute>
      </item>
    </submenu>
  </menu>

</interface>

