<!--
Description:
  A button that has click or display controls.
Variables:
  ObjectName        : object name
  ToolTipID         : standard Tooltip from mixxx db
    see: https://github.com/mixxxdj/mixxx/blob/main/src/skin/legacy/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
  ConfigKey         : left-click control
  ConfigKeyRight    : right-click control
  ConfigKeyDisp     : display control
-->
<Template>
  <PushButton>
    <TooltipId><Variable name="TooltipId"/></TooltipId>
    <ObjectName><Variable name="ObjectName"/></ObjectName>
    <Size><Variable name="Size"/></Size>
    <NumberStates>1</NumberStates>
    <State>
      <Number>0</Number>
      <Text><Variable name="state_0_text"/></Text>
      <Alignment><Variable name="Align"/></Alignment>
      <Pressed scalemode="STRETCH_ASPECT">skins:Tango/buttons/btn_<Variable name="state_0_pressed"/></Pressed>
      <Unpressed scalemode="STRETCH_ASPECT">skins:Tango/buttons/btn_<Variable name="state_0_unpressed"/></Unpressed>
    </State>
    <Connection>
      <ConfigKey><Variable name="ConfigKey"/></ConfigKey>
      <ButtonState>LeftButton</ButtonState>
    </Connection>
    <Connection>
      <ConfigKey><Variable name="ConfigKeyRight"/></ConfigKey>
      <ButtonState>RightButton</ButtonState>
    </Connection>
    <Connection>
      <ConfigKey><Variable name="ConfigKeyDisp"/></ConfigKey>
      <ConnectValueFromWidget>false</ConnectValueFromWidget>
    </Connection>
  </PushButton>
</Template>
