<!--
Description:
	Container for Main mixer in topbar.
-->
<Template>
  <WidgetGroup><!-- Main Mixer -->
    <ObjectName>MixerbarSection</ObjectName>
    <Layout>horizontal</Layout>
    <Size>-1min,28f</Size>
    <Children>
      <WidgetGroup>
        <ObjectName>MainMixerLabel</ObjectName>
        <Size>24f,24f</Size>
      </WidgetGroup>

      <WidgetGroup>
        <ObjectName>MixerbarKnob</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>min,me</SizePolicy>
        <Children>
          <KnobComposed>
            <TooltipId>main_gain</TooltipId>
            <Size>26f,22f</Size>
            <Knob>skins:Tango/knobs_sliders/knob_yellow.svg</Knob>
            <BackPath>skins:Tango/knobs_sliders/knob_bg_main.svg</BackPath>
            <MinAngle><Variable name="PotiMinAngle"/></MinAngle>
            <MaxAngle><Variable name="PotiMaxAngle"/></MaxAngle>
            <KnobCenterYOffset>2.000</KnobCenterYOffset>
            <Connection>
              <ConfigKey>[Master],gain</ConfigKey>
            </Connection>
          </KnobComposed>
        </Children>
      </WidgetGroup>

      <WidgetGroup>
        <ObjectName>MixerbarKnob</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>min,me</SizePolicy>
        <Children>
          <KnobComposed>
            <TooltipId>booth_gain</TooltipId>
            <Size>26f,22f</Size>
            <Knob>skins:Tango/knobs_sliders/knob_yellow.svg</Knob>
            <BackPath>skins:Tango/knobs_sliders/knob_bg_booth.svg</BackPath>
            <MinAngle><Variable name="PotiMinAngle"/></MinAngle>
            <MaxAngle><Variable name="PotiMaxAngle"/></MaxAngle>
            <KnobCenterYOffset>2.000</KnobCenterYOffset>
            <Connection>
              <ConfigKey>[Master],booth_gain</ConfigKey>
            </Connection>
          </KnobComposed>
        </Children>
        <Connection>
          <ConfigKey>[Master],booth_enabled</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>

      <SliderComposed>
        <TooltipId>balance</TooltipId>
        <ObjectName>MixerbarSlider</ObjectName>
        <Size>48f,24f</Size>
        <Handle scalemode="STRETCH_ASPECT">skins:Tango/knobs_sliders/balance_handle.svg</Handle>
        <Slider scalemode="STRETCH_ASPECT">skins:Tango/knobs_sliders/balance_scale.svg</Slider>
        <Horizontal>true</Horizontal>
        <Connection>
          <ConfigKey>[Master],balance</ConfigKey>
        </Connection>
      </SliderComposed>

      <WidgetGroup><Size>1f,1min</Size></WidgetGroup>

      <WidgetGroup><!-- FX assignment buttons -->
        <ObjectName>FxMainToggles</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>min,min</SizePolicy>
        <Children>

          <WidgetGroup>
            <ObjectName>FxMainToggles</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>min,min</SizePolicy>
            <Children>
              <Template src="skins:Tango/fx/main_button.xml">
                <SetVariable name="FxUnit">1</SetVariable>
              </Template>
              <Template src="skins:Tango/fx/main_button.xml">
                <SetVariable name="FxUnit">3</SetVariable>
              </Template>
            </Children>
          </WidgetGroup>

          <WidgetGroup>
            <ObjectName>FxMainToggles</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>min,min</SizePolicy>
            <Children>
              <Template src="skins:Tango/fx/main_button.xml">
                <SetVariable name="FxUnit">2</SetVariable>
              </Template>
              <Template src="skins:Tango/fx/main_button.xml">
                <SetVariable name="FxUnit">4</SetVariable>
              </Template>
            </Children>
          </WidgetGroup>

        </Children>
      </WidgetGroup><!-- /FX assignment buttons -->

      <WidgetGroup><Size>1f,1min</Size></WidgetGroup>

    </Children>
    <Connection>
      <ConfigKey persist="true">[Tango],main_mixer</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup><!-- /Main Mixer -->
</Template>
