<!--  This layout is only used for channel 2.  It can switch between a standard
vertical layout and a reversed side-by-side layout for two-deck mode -->

<Template>
  <SetVariable name="Group">[Channel<Variable name="ChanNum"/>]</SetVariable>
  <SetVariable name="EqFxUnit">[EqualizerRack1_<Variable name="Group"/>]</SetVariable>
  <SetVariable name="EqEffect">[EqualizerRack1_<Variable name="Group"/>_Effect1]</SetVariable>

  <SetVariable name="KnobBg">regular</SetVariable>
  <SetVariable name="KnobIndicator">regular</SetVariable>
  <SetVariable name="ArcRadius"><Variable name="ArcRadiusBig"/></SetVariable>
  <SetVariable name="ArcThickness"><Variable name="ArcThicknessBig"/></SetVariable>


  <WidgetGroup>
    <ObjectName>MixerChannel_2Decks</ObjectName>
    <Layout>horizontal</Layout>
    <SizePolicy>min,min</SizePolicy>
    <Children>

      <WidgetGroup>
        <ObjectName>VolumeGain2Decks</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <Template src="skins:LateNight/controls/knob.xml">
            <SetVariable name="Size">40f,34f</SetVariable>
            <SetVariable name="KnobColor">orange</SetVariable>
            <SetVariable name="ArcColor"><Variable name="ArcColorGain"/></SetVariable>
            <SetVariable name="Control">pregain</SetVariable>
            <SetVariable name="TooltipId">pregain</SetVariable>
          </Template>

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

          <SliderComposed><!-- Volume -->
            <TooltipId>channel_volume</TooltipId>
            <Size>42f,107f</Size>
            <Handle scalemode="STRETCH_ASPECT">skins:LateNight/<Variable name="SliderScheme"/>/sliders/knob_volume_deck.svg</Handle>
            <Slider scalemode="STRETCH_ASPECT">skins:LateNight/<Variable name="SliderScheme"/>/sliders/slider_volume_deck.svg</Slider>
            <Horizontal>false</Horizontal>
            <BarColor><Variable name="BarColorVolume"/></BarColor>
            <BarWidth><Variable name="BarWidth"/></BarWidth>
            <BarMargins><Variable name="BarMarginVolume"/></BarMargins>
            <BarRoundCaps>true</BarRoundCaps>
            <BarAxisPos>21.0</BarAxisPos>
            <Connection>
              <ConfigKey><Variable name="Group"/>,volume</ConfigKey>
            </Connection>
          </SliderComposed>

          <WidgetGroup><Size>1min,0me</Size></WidgetGroup>
        </Children>
      </WidgetGroup><!-- VolumeGain2Decks -->

      <WidgetGroup>
        <ObjectName>MixerChannel_2Decks_Right</ObjectName>
        <SizePolicy>min,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>

          <!-- In case an EQ/non-EQ effect has less than 3 knobs we need
               center those vertically. This spacer and the one below knob 3
               push Gain and QuickEffect etc. to the top/bottom -->
          <WidgetGroup><Size>1min,0me</Size></WidgetGroup>

          <Template src="skins:LateNight/mixer/eq_knob_right.xml">
            <SetVariable name="EqParameter">3</SetVariable>
            <SetVariable name="EqRange">High</SetVariable>
          </Template>

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

          <Template src="skins:LateNight/mixer/eq_knob_right.xml">
            <SetVariable name="EqParameter">2</SetVariable>
            <SetVariable name="EqRange">Mid</SetVariable>
          </Template>

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

          <Template src="skins:LateNight/mixer/eq_knob_right.xml">
            <SetVariable name="EqParameter">1</SetVariable>
            <SetVariable name="EqRange">Low</SetVariable>
          </Template>

          <WidgetGroup><Size>1min,2me</Size></WidgetGroup>

          <Template src="skins:LateNight/mixer/quick_effect_knob_right.xml"/>

          <WidgetGroup><Size>0min,3f</Size></WidgetGroup>
        </Children>
        <Connection>
          <ConfigKey>[Skin],show_eq_knobs</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup><!-- MixerChannel_2Decks_Right -->

    </Children>
  </WidgetGroup>
</Template>
