<Template>
  <WidgetGroup>
    <SizePolicy>me,i</SizePolicy>
    <Layout>vertical</Layout>
    <Children>
      <WidgetGroup>
        <ObjectName>LibraryContainer</ObjectName>
        <SizePolicy>me,me</SizePolicy>
        <Layout>horizontal</Layout>
        <Children>
          <Splitter>
            <Size>me,me</Size>
            <SplitSizes>1,6</SplitSizes>
            <Collapsible>1,0</Collapsible>
            <SplitSizesConfigKey>[Skin],librarySidebar_splitsize</SplitSizesConfigKey>
            <Children>
              <!-- Sidebar etc. -->
              <WidgetGroup>
                <!-- Required for restoring the splitter sizes, otherwise the searchbox
                    would force.expand the left side.
                    Also required to avoid resize (shrink) glitch with long titles loaded
                    to the preview deck. -->
                <SizePolicy>i,min</SizePolicy>
                <Layout>vertical</Layout>
                <Children>
                  <Template src="skin:preview_deck.xml"/>

                  <SearchBox></SearchBox>

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

                  <!-- Tree View | Cover Art -->
                  <Splitter>
                    <Size>e,me</Size>
                    <SplitSizes>1,e</SplitSizes>
                    <Collapsible>0,0</Collapsible>
                    <Children>
                      <LibrarySidebar></LibrarySidebar>
                      <CoverArt>
                        <MinimumSize>16,16</MinimumSize>
                        <SizePolicy>me,me</SizePolicy>
                        <Connection>
                          <ConfigKey>[Skin],show_library_coverart</ConfigKey>
                          <BindProperty>visible</BindProperty>
                        </Connection>
                      </CoverArt>
                    </Children>
                  </Splitter>

                </Children>
              </WidgetGroup><!-- Sidebar etc. -->

              <Library>
                <ShowButtonText>false</ShowButtonText>
                <TrackTableBackgroundColorOpacity>0.250</TrackTableBackgroundColorOpacity>
              </Library>

            </Children>
          </Splitter>
        </Children>
      </WidgetGroup><!-- LibraryContainer -->
    </Children>
  </WidgetGroup>
</Template>
