<!--
Description:
  Container for either CoverArt or Spinny (with or without Cover).
  Displayed next to decks where channel mixer would be.
Variables:
  group   : [ChannelN]
-->
<Template>
  <WidgetGroup>
    <ObjectName>SpinnyCoverCont1</ObjectName>
    <SizePolicy>max,min</SizePolicy>
    <Layout>vertical</Layout>
    <Children>

      <WidgetGroup>
        <ObjectName>SpinnyCoverCont2</ObjectName>
        <SizePolicy>max,min</SizePolicy>
        <MaximumSize>111,111</MaximumSize>
        <Layout>vertical</Layout>
        <Children>

          <!-- Spinny with/without Cover Art -->
          <WidgetGroup>
            <ObjectName>SpinnyCover</ObjectName>
            <Size>111f,111f</Size>
            <Layout>vertical</Layout>
            <Children>
              <!-- no Cover on Spinny -->
              <Spinny>
                <TooltipId>spinny</TooltipId>
                <Size>111f,111f</Size>
                <Group><Variable name="group"/></Group>
                <PathBackground scalemode="STRETCH_ASPECT">skin:../Tango/graphics/spinny_bg.svg</PathBackground>
                <PathMask scalemode="STRETCH_ASPECT">skin:../Tango/graphics/spinny_mask.svg</PathMask>
                <PathForeground scalemode="STRETCH_ASPECT">skin:../Tango/graphics/spinny_indicator.svg</PathForeground>
                <PathGhost scalemode="STRETCH_ASPECT">skin:../Tango/graphics/spinny_indicator_ghost.svg</PathGhost>
                <ShowCover>false</ShowCover>
                <Connection>
                  <ConfigKey persist="true">[Skin],show_coverart</ConfigKey>
                  <Transform><Not/></Transform>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </Spinny>
              <!-- Cover on Spinny -->
              <Spinny>
                <TooltipId>spinny</TooltipId>
                <Size>111f,111f</Size>
                <Group><Variable name="group"/></Group>
                <PathBackground scalemode="STRETCH_ASPECT">skin:../Tango/graphics/spinny_bg.svg</PathBackground>
                <PathMask scalemode="STRETCH_ASPECT">skin:../Tango/graphics/spinny_mask.svg</PathMask>
                <PathForeground scalemode="STRETCH_ASPECT">skin:../Tango/graphics/spinny_indicator.svg</PathForeground>
                <PathGhost scalemode="STRETCH_ASPECT">skin:../Tango/graphics/spinny_indicator_ghost.svg</PathGhost>
                <ShowCover>true</ShowCover>
                <Connection>
                  <ConfigKey persist="true">[Skin],show_coverart</ConfigKey>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </Spinny>
            </Children>
            <Connection>
              <ConfigKey persist="true">[Skin],show_spinnies</ConfigKey>
              <BindProperty>visible</BindProperty>
            </Connection>
          </WidgetGroup>

          <!-- Cover Art only -->
          <WidgetGroup>
            <ObjectName>SpinnyCover</ObjectName>
            <SizePolicy>max,max</SizePolicy>
            <MaximumSize>111,111</MaximumSize>
            <Layout>vertical</Layout>
            <Children>
              <CoverArt>
                <TooltipId>coverart</TooltipId>
                <Size>111f,111f</Size>
                <Group><Variable name="group"/></Group>
                <DefaultCover scalemode="STRETCH_ASPECT">skin:../Tango/graphics/cover_default.svg</DefaultCover>
                <Connection>
                  <ConfigKey persist="true">[Skin],show_coverart</ConfigKey>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </CoverArt>
            </Children>
            <Connection>
              <ConfigKey persist="true">[Skin],show_spinnies</ConfigKey>
              <Transform><Not/></Transform>
              <BindProperty>visible</BindProperty>
            </Connection>
          </WidgetGroup>
        </Children>
      </WidgetGroup>

      <WidgetGroup>
        <Size>-1i,1f</Size>
      </WidgetGroup>

      <WidgetGroup>
        <ObjectName>RoundFiller25</ObjectName>
        <Size>-1i,24f</Size>
      </WidgetGroup>

      <WidgetGroup>
        <Layout>vertical</Layout>
        <SizePolicy>i,i</SizePolicy>
        <Children>
          <WidgetGroup><ObjectName>Spacer1e</ObjectName><Size>0me,3f</Size></WidgetGroup>
          <WidgetGroup><ObjectName>RoundFiller25</ObjectName><Size>0me,22me</Size></WidgetGroup>
        </Children>
      </WidgetGroup>

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