<!--
Description:
	Container for Master & Booth mixer, showing up in topbar.
-->
<Template>
  <WidgetGroup><!-- Master & Booth Mixer -->
    <ObjectName>AlignLeft</ObjectName>
    <Layout>horizontal</Layout>
    <Size>1min,28f</Size>
    <Children>

      <WidgetGroup><!-- Master Mixer -->
        <ObjectName>MixerbarSection</ObjectName>
        <Layout>horizontal</Layout>
        <Size>-1min,28f</Size>
        <Children>
          <WidgetGroup>
            <ObjectName>MasterMixerLabel</ObjectName>
            <Size>24f,24f</Size>
          </WidgetGroup>

          <Template src="skin:knob_textless.xml">
            <SetVariable name="TooltipId">master_gain</SetVariable>
            <SetVariable name="ObjectName">MixerbarKnob</SetVariable>
            <SetVariable name="Size">28f,28f</SetVariable>
            <SetVariable name="group">[Master]</SetVariable>
            <SetVariable name="ConfigKey">gain</SetVariable>
            <SetVariable name="Color">yellow</SetVariable>
          </Template>

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

          <WidgetGroup><!-- FX assignment buttons -->
            <ObjectName>Spacer0f</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>min,min</SizePolicy>
            <Children>
              <SetVariable name="FxRack">1</SetVariable>

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

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <SizePolicy>min,min</SizePolicy>
                <Children>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:fx_master_button.xml">
                    <SetVariable name="Size">26f,13f</SetVariable>
                    <SetVariable name="FxUnit">1</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:fx_master_button.xml">
                    <SetVariable name="Size">26f,13f</SetVariable>
                    <SetVariable name="FxUnit">2</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                </Children>
              </WidgetGroup>

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

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <SizePolicy>min,min</SizePolicy>
                <Children>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:fx_master_button.xml">
                    <SetVariable name="Size">26f,13f</SetVariable>
                    <SetVariable name="FxUnit">3</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:fx_master_button.xml">
                    <SetVariable name="Size">26f,13f</SetVariable>
                    <SetVariable name="FxUnit">4</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                </Children>
              </WidgetGroup>

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

        </Children>
      </WidgetGroup><!-- /Master Mixer -->

      <WidgetGroup><!-- Booth Gain -->
        <Layout>horizontal</Layout>
        <SizePolicy>min,max</SizePolicy>
        <Children>

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

          <WidgetGroup>
            <ObjectName>MixerbarSection</ObjectName>
            <Layout>horizontal</Layout>
            <Size>-1min,28f</Size>
            <Children>

              <WidgetGroup>
                <ObjectName>BoothMixerLabel</ObjectName>
                <Size>30f,24f</Size>
              </WidgetGroup>

              <Template src="skin:knob_textless.xml">
                <SetVariable name="TooltipId">booth_gain</SetVariable>
                <SetVariable name="ObjectName">MixerbarKnob</SetVariable>
                <SetVariable name="Size">28f,28f</SetVariable>
                <SetVariable name="group">[Master]</SetVariable>
                <SetVariable name="ConfigKey">booth_gain</SetVariable>
                <SetVariable name="Color">yellow</SetVariable>
              </Template>

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

            </Children>
          </WidgetGroup>
        </Children>
        <Connection>
          <ConfigKey>[Master],booth_enabled</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup><!-- /Booth Gain -->
    </Children>
    <Connection>
      <ConfigKey>[Tango],master_mixer</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup><!-- Booth & Master Mixer -->
</Template>
