<!--
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>
    <SizePolicy>max,min</SizePolicy>
    <Layout>vertical</Layout>
    <Children>

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

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

          <!-- Cover Art -->
          <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">skins: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>
