<plugin resizable="true">
		<hbox spacing="4">
			<grid rows="1" cols="5" transpose="true" spacing="4">
				<group text="groups.signal" width.min="148" expand="true">
					<grid rows="4" cols="3" spacing="4">
						<label text="labels.signal.dry" width="60"/>
						<label text="labels.signal.wet" width="60"/>
						<label text="labels.signal.drywet" width="60"/>
						
						<knob id="dry" scolor="dry"/>
						<knob id="wet" scolor="wet"/>
						<knob id="drywet" scolor="drywet"/>
						
						<value id="dry" sline="true" width.min="50"/>
						<value id="wet" sline="true" width.min="50"/>
						<value id="drywet" sline="true" width.min="50"/>
						
						<button id="mode" text="labels.mode" ui:inject="Button" led="true"/>
						<button id="ramp" text="labels.ramp" ui:inject="Button" led="true"/>
						<void />
					</grid>
				</group>
				<ui:with bright="(:mode ieq 0) ? 1.0 : 0.75" ibg.bright="(:mode ieq 0) ? 1.0 : :const_bg_darken">
					<group text="groups.samples" width.min="85" expand="true">
						<grid rows="4" cols="1" spacing="4">
							<label text="labels.units.samples"/>
							<knob id="samp" scolor="(:mode ieq 0) ? 'kscale' : 'kscale_inactive'"/>
							<value id="samp" sline="true" width.min="62"/>
							<hbox fill="false" spacing="4" height.min="22">
								<led id="mode" size="10" pad.b="1" key="0" />
								<label text="labels.active"/>
							</hbox>
						</grid>
					</group>
				</ui:with>

				<ui:with bright="(:mode ieq 1) ? 1.0 : 0.75" ibg.bright="(:mode ieq 1) ? 1.0 : :const_bg_darken">
					<group text="groups.distance" expand="true">
						<grid rows="4" cols="3" spacing="4">
							<label text="labels.units.meters" width="74"/>
							<label text="labels.units.centimeters" width="74"/>
							<label text="labels.temperature" width="74"/>
							<knob id="m" scolor="(:mode ieq 1) ? 'kscale' : 'kscale_inactive'"/>
							<knob id="cm" scolor="(:mode ieq 1) ? 'kscale' : 'kscale_inactive'"/>
							<knob id="t" balance="0.5" scolor="(:mode ieq 1) ? 'kscale' : 'kscale_inactive'"/>
							<value id="m" sline="true" width.min="40"/>
							<value id="cm" sline="true" width.min="40"/>
							<value id="t" sline="true" width.min="40"/>
							<cell cols="4">
								<hbox fill="false" spacing="4" height.min="22">
									<led id="mode" size="10" pad.b="1" key="1" />
									<label text="labels.active"/>
								</hbox>
							</cell>
						</grid>
					</group>
				</ui:with>
				<ui:with bright="(:mode ieq 2) ? 1.0 : 0.75" ibg.bright="(:mode ieq 2) ? 1.0 : :const_bg_darken">
					<group text="groups.time" expand="true">
						<grid rows="4" cols="1" spacing="4">
							<label text="labels.delay"/>
							<knob id="time" scolor="(:mode ieq 2) ? 'kscale' : 'kscale_inactive'"/>
							<value id="time" sline="true" width.min="50"/>
							<hbox fill="false" spacing="4" height.min="22">
								<led id="mode" size="10" pad.b="1" key="2" />
								<label text="labels.active"/>
							</hbox>
						</grid>
					</group>
				</ui:with>
				<group text="groups.monitoring" expand="false">
					<grid rows="4" cols="2" spacing="4">
						<label text="labels.time_:ms" hfill="true" htext="-1"/>
						<align halign="1">
							<indicator id="d_t" format="f6.2!" tcolor="ind_text"/>
						</align>
						<label text="labels.samples:samp" hfill="true" htext="-1"/>
						<align halign="1">
							<indicator id="d_s" format="i6." tcolor="ind_text"/>
						</align>
						<label text="labels.distance:cm" hfill="true" htext="-1"/>
						<align halign="1">
							<indicator id="d_d" format="f6.1!" tcolor="ind_text"/>
						</align>
						<cell cols="2">
						<label height.min="22"/>
					</cell>
					</grid>
				</group>
			</grid>
			<group text="groups.output" text.show="false" >
				<vbox spacing="4" >
					<label text="labels.output" />
					<knob id="g_out" size="24" />
					<value id="g_out" width.min="35"/>
					<button id="phase" text="labels.chan.phase" ui:inject="Button_yellow" led="true"/>
				</vbox>
			</group>
		</hbox>
	</plugin>
