<!--
Description:
  Container for either CoverArt or Spinny (with or without Cover).
  Displayed next to overview waveform in decks.
Variables:
  chanNum : channel number
  group   : [ChannelXY]
-->
<Template>
  <WidgetGroup>
    <ObjectName>SpinnyCover_Container</ObjectName>
    <SizePolicy>max,me</SizePolicy>
    <Layout>vertical</Layout>
    <Children>

      <!-- Spinny with/without Cover Art -->
      <WidgetGroup>
        <Size>50f,50f</Size>
        <Layout>vertical</Layout>
        <Children>
          <!-- no Cover on Spinny -->
          <Spinny>
            <ObjectName>SpinnyMini</ObjectName>
            <Size>50f,50f</Size>
            <TooltipId>spinny</TooltipId>
            <Group><Variable name="group"/></Group>
            <PathBackground scalemode="STRETCH_ASPECT">graphics/spinnyMini_bg.svg</PathBackground>
            <PathForeground scalemode="STRETCH_ASPECT">graphics/spinnyMini_indicator.svg</PathForeground>
            <PathMask scalemode="STRETCH_ASPECT">graphics/spinnyMini_<Variable name="chanNum"/>_mask.svg</PathMask>
            <PathGhost scalemode="STRETCH_ASPECT">graphics/spinnyMini_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>
            <ObjectName>SpinnyMini</ObjectName>
            <Size>50f,50f</Size>
            <TooltipId>spinny</TooltipId>
            <Group><Variable name="group"/></Group>
            <PathBackground scalemode="STRETCH_ASPECT">graphics/spinnyMini_bg.svg</PathBackground>
            <PathForeground scalemode="STRETCH_ASPECT">graphics/spinnyMini_indicator.svg</PathForeground>
            <PathMask scalemode="STRETCH_ASPECT">graphics/spinnyMini_<Variable name="chanNum"/>_mask.svg</PathMask>
            <PathGhost scalemode="STRETCH_ASPECT">graphics/spinnyMini_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">[Spinny],show_spinnies</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>

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

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