<!--
Description:
  VUMeter template for mixer VU meter and floating channel & Main VU meter
Variables:
  group   : [ChannelN]
  side    : L or R


Rendering the meters from SVGs makes the entire GUI very laggy on older Macs.
Refer to https://github.com/mixxxdj/mixxx/issues/9201
-->
<Template>
  <WidgetGroup>
    <Layout>horizontal</Layout>
    <SizePolicy>min,min</SizePolicy>
    <Children>
      <WidgetGroup>
        <ObjectName>VuMeterClippingBorder</ObjectName>
        <Layout>horizontal</Layout>
        <Size>10f,-1min</Size>
        <Children>
          <VuMeter>
            <Size>4f,-1min</Size>
            <PathVu>skins:Tango/graphics/vumeter_level_over.png</PathVu>
            <PathBack>skins:Tango/graphics/vumeter_level.png</PathBack>
            <Horizontal>false</Horizontal>
            <PeakHoldSize>4</PeakHoldSize>
            <PeakHoldTime>800</PeakHoldTime>
            <PeakFallTime>200</PeakFallTime>
            <PeakFallStep>5</PeakFallStep>
            <Connection>
              <ConfigKey><Variable name="group"/>,vu_meter_left</ConfigKey>
            </Connection>
          </VuMeter>
          <VuMeter>
            <Size>4f,-1min</Size>
            <PathVu>skins:Tango/graphics/vumeter_level_over.png</PathVu>
            <PathBack>skins:Tango/graphics/vumeter_level.png</PathBack>
            <Horizontal>false</Horizontal>
            <PeakHoldSize>4</PeakHoldSize>
            <PeakHoldTime>800</PeakHoldTime>
            <PeakFallTime>200</PeakFallTime>
            <PeakFallStep>5</PeakFallStep>
            <Connection>
              <ConfigKey><Variable name="group"/>,vu_meter_right</ConfigKey>
            </Connection>
          </VuMeter>
        </Children>
        <Connection>
          <ConfigKey><Variable name="group"/>,peak_indicator</ConfigKey>
          <BindProperty>highlight</BindProperty>
        </Connection>
      </WidgetGroup>
    </Children>
  </WidgetGroup>
</Template>
