  <!--
  LateNight, Resizable skin for Mixxx 2.1.x
  www.mixxx.org
  Copyright (C) 2010-2013 jus <s.brandt@mixxx.org>, 2014 Owen Williams <owilliams@mixxx.org>
  "LateNight" is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license.
  http://creativecommons.org/licenses/by-sa/3.0/

  With every copy of the work, you are required to either provide a copy of the license it self
  or a link (URI). Failure to do this is a failure to complete the terms of the CC license.

  You are free:
  to Share - to copy, distribute and transmit the work
  to Remix - to adapt the work

  Under the following conditions:
  Attribution - You must attribute the work in the manner specified by the author or licensor
  (but not in any way that suggests that they endorse you or your use of the work).
  A attribution should include the following: The name of the author and/or licensor,
  the title of the work, the URL that is associated with the work.

  Share Alike - If you alter, transform, or build upon this work, you may distribute
  the resulting work only under the same or similar license to this one.

  See CHANGELOG.txt for the list of changes.

  TODO: Remove "persist" attributes throughout the skin and confirm that declaring
  them in the attributes section instead works.
  -->

<!DOCTYPE skin>
<skin>
  <manifest>
    <title>LateNight</title>
    <author>owilliams</author>
    <version>2.1.0.01</version>
    <description>A nighttime-compatible skin</description>
    <language>en</language>
    <license>Creative Commons Attribution, Share-Alike 3.0 Unported</license>
    <attributes>
      <!-- Set skin defaults. -->
      <attribute config_key="[Master],num_decks">4</attribute>
      <attribute config_key="[Master],num_samplers">8</attribute>
      <attribute persist="true" config_key="[Microphone],show_microphone">0</attribute>
      <attribute persist="true" config_key="[EffectRack1],show">0</attribute>
      <attribute persist="true" config_key="[Samplers],show_samplers">0</attribute>
      <attribute persist="true" config_key="[Skin],8_samplers">1</attribute>
      <attribute persist="true" config_key="[Skin],expand_samplers">0</attribute>
      <attribute persist="true" config_key="[Vinylcontrol],show_vinylcontrol">0</attribute>
      <attribute persist="true" config_key="[PreviewDeck],show_previewdeck">0</attribute>
      <attribute persist="true" config_key="[Master],show_mixer">1</attribute>
      <attribute persist="true" config_key="[Master],show_eqs">1</attribute>
      <attribute persist="true" config_key="[Master],show_eq_kill_buttons">1</attribute>
      <attribute persist="true" config_key="[Library],show_coverart">1</attribute>
      <attribute persist="true" config_key="[Master],show_4decks">0</attribute>
      <attribute persist="true" config_key="[Master],show_4effectunits">0</attribute>
      <attribute persist="true" config_key="[Library],show_library">1</attribute>
      <attribute persist="true" config_key="[Master],show_xfader">1</attribute>
      <attribute persist="true" config_key="[Skin],8_hotcues">0</attribute>
      <attribute persist="true" config_key="[Spinny],show_spinnies">1</attribute>
      <attribute persist="true" config_key="[Skin],show_cover_art">1</attribute>
      <attribute persist="true" config_key="[Skin],big_spinny">0</attribute>
      <attribute config_key="[Master],maximize_library">0</attribute>
      <attribute config_key="[Master],skin_settings">0</attribute>
      <attribute config_key="[Master],show_rate_control">1</attribute>
      <!--Disable hidden effect routing Buttons-->
      <attribute persist="false" config_key="[EffectRack1_EffectUnit1],group_[MasterOutput]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit1],group_[BusLeft]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit1],group_[BusCenter]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit1],group_[BusRight]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit1],group_[BusTalkover]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit2],group_[MasterOutput]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit2],group_[BusLeft]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit2],group_[BusCenter]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit2],group_[BusRight]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit2],group_[BusTalkover]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit3],group_[MasterOutput]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit3],group_[BusLeft]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit3],group_[BusCenter]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit3],group_[BusRight]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit3],group_[BusTalkover]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit4],group_[MasterOutput]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit4],group_[BusLeft]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit4],group_[BusCenter]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit4],group_[BusRight]_enable">0</attribute>
      <attribute persist="false" config_key="[EffectRack1_EffectUnit4],group_[BusTalkover]_enable">0</attribute>
    </attributes>
  </manifest>

  <ObjectName>Mixxx</ObjectName>
  <Style src="skin:style.qss" src-mac="skin:style-mac.qss"/>

  <!-- MinimumSize should not be an exact monitor resolution. There needs
  to be space for the title bar or other chrome at full screen -->
  <MinimumSize>1270,550</MinimumSize>
  <SizePolicy>me,me</SizePolicy>
  <Layout>vertical</Layout>
  <LaunchImageStyle>
    LaunchImage {
      background-color: #0f0f0f;
    }
    QLabel {
      image: url(skin:/style/mixxx_logo.svg);
      padding: 0;
      margin: 0px 2px 0px 2px;
      border: none;
      min-width: 160px;
      min-height: 40px;
      max-width: 160px;
      max-height: 40px;
    }
    QProgressBar {
      background: url(skin:/style/progressbar_bg.svg);
      border: none;
      min-width: 164px;
      min-height: 5px;
      max-width: 164px;
      max-height: 5px;
    }
    QProgressBar::chunk {
      background: url(skin:/style/progressbar.svg);
    }
  </LaunchImageStyle>

  <Children>
    <SetVariable name="PotiMinAngle">-135</SetVariable>
    <SetVariable name="PotiMaxAngle">135</SetVariable>
    <SetVariable name="PlayedOverlayColor">#bb000000</SetVariable>
    <!-- Define singletons as early in the skin as possible.  Note that the
    library doesn't actually appear here, it's just instantiated and configured.
    -->

    <SingletonDefinition>
      <ObjectName>WaveformsSingleton</ObjectName>
      <Children>
        <Template src="skin:waveforms_singleton.xml"/>
      </Children>
    </SingletonDefinition>

    <SingletonDefinition>
      <ObjectName>LibrarySingleton</ObjectName>
      <Children>
        <Template src="skin:library.xml"/>
      </Children>
    </SingletonDefinition>

    <WidgetGroup>
      <ObjectName>SkinContainer</ObjectName>
      <Layout>vertical</Layout>
      <SizePolicy>me,me</SizePolicy>
      <Children>
        <WidgetGroup><!-- All skin elements-->
          <Layout>horizontal</Layout>
          <SizePolicy>me,me</SizePolicy>
          <Children>

            <!-- Select between either the full UI or the big library -->
            <WidgetStack currentpage="[Master],maximize_library">
              <Children>

                <!-- Waveforms, Decks, Effects... /  Library -->
                <Splitter>
                  <ObjectName>HorizontalSplitter</ObjectName>
                  <Orientation>vertical</Orientation>
                  <SizePolicy>me,min</SizePolicy>
                  <SplitSizes>1,5</SplitSizes>
                  <SplitSizesConfigKey>[LateNight],waveform_splitSize</SplitSizesConfigKey>
                  <Collapsible>1,0</Collapsible>
                  <Children>

                    <Template src="skin:waveforms.xml"/>

                    <WidgetGroup>
                      <Layout>vertical</Layout>
                      <SizePolicy>me,me</SizePolicy>
                      <Children>
                        <WidgetGroup>
                          <Layout>horizontal</Layout>
                          <SizePolicy>me,max</SizePolicy>
                          <Children>
                            <Template src="skin:decks_left.xml"/>
                            <Template src="skin:mixer.xml"/>
                            <Template src="skin:decks_right.xml"/>
                          </Children>
                        </WidgetGroup>
                        <Template src="skin:fx_rack.xml"/>
                        <Template src="skin:samplers_rack.xml"/>
                        <Template src="skin:mic_aux_rack.xml"/>
                        <SingletonContainer>
                          <ObjectName>LibrarySingleton</ObjectName>
                        </SingletonContainer>
                      </Children>
                    </WidgetGroup>

                  </Children>
                </Splitter><!-- Decks, Effects ... Library -->

                <!-- MAximized Library -->
                <WidgetGroup trigger="[Master],maximize_library" on_hide_select="0">
                  <Layout>vertical</Layout>
                  <SizePolicy>me,me</SizePolicy>
                  <Children>
                    <SingletonContainer>
                      <ObjectName>LibrarySingleton</ObjectName>
                    </SingletonContainer>
                  </Children>
                </WidgetGroup>

              </Children>
            </WidgetStack>
            <Template src="skin:skin_settings.xml"/>
          </Children>
        </WidgetGroup>
        <Template src="skin:toolbar.xml"/>
      </Children>
    </WidgetGroup>
  </Children>
</skin>
