<!--
Description:
  A deck control button that is only visible if optional
  deck controls are expanded.
  Set visibility in skin menu: Decks > Permanent Deck Controls
Variables:
  ObjectName        : object name
  ToolTipID         : standard Tooltip from mixxx db
    see: https://github.com/mixxxdj/mixxx/blob/master/src/skin/tooltips.cpp
  Size              : button size
  state_X_text      : label text for state X
  state_X_pressed   : background graphic for pressed state X
  state_X_unpressed : background graphic for unpressed state X
  Align             : alignment of text
  Control           : persistent left-click control, also used as
                      visibility condition
-->
<Template>
  <PushButton>
    <TooltipId><Variable name="TooltipId"/></TooltipId>
    <ObjectName>DeckButtonExpanded</ObjectName>
    <Size><Variable name="Width"/>,22f</Size>
    <NumberStates>1</NumberStates>
    <State>
      <Number>0</Number>
      <Pressed scalemode="STRETCH_ASPECT">skin:../Tango/buttons/btn_<Variable name="state_0_pressed"/></Pressed>
      <Unpressed scalemode="STRETCH_ASPECT">skin:../Tango/buttons/btn_<Variable name="state_0_unpressed"/></Unpressed>
    </State>
    <Connection>
      <ConfigKey persist="true"><Variable name="group"/>,<Variable name="Control"/></ConfigKey>
      <ButtonState>LeftButton</ButtonState>
    </Connection>
    <Connection>
      <ConfigKey persist="true">[Tango],always_visible_<Variable name="Control"/></ConfigKey>
      <Transform><Not/></Transform>
      <BindProperty>visible</BindProperty>
    </Connection>
  </PushButton>
</Template>
