From d4f79413eb4232c2217fb310fef27948600b4553 Mon Sep 17 00:00:00 2001 From: motofckr9k Date: Fri, 19 Jun 2020 21:27:41 +0200 Subject: [PATCH] Fix seperator and move up inputLevel --- interface/resources/qml/hifi/audio/Audio.qml | 23 ++++++++++---------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/interface/resources/qml/hifi/audio/Audio.qml b/interface/resources/qml/hifi/audio/Audio.qml index cfa5ca6d96..e30a4bfe93 100644 --- a/interface/resources/qml/hifi/audio/Audio.qml +++ b/interface/resources/qml/hifi/audio/Audio.qml @@ -558,6 +558,16 @@ Rectangle { anchors { left: parent.left; leftMargin: margins.paddings } } + AudioControls.InputPeak { + id: inputLevel + anchors.right: parent.right + peak: model.peak; + anchors.verticalCenter: parent.verticalCenter + visible: ((bar.currentIndex === 1 && isVR) || + (bar.currentIndex === 0 && !isVR)) && + AudioScriptingInterface.devices.input.peakValuesAvailable; + } + ListView { id: inputView; width: rightMostInputLevelPos; @@ -594,22 +604,13 @@ Rectangle { AudioScriptingInterface.setInputDevice(info, bar.currentIndex === 1); } } - } - AudioControls.InputPeak { - id: inputLevel - anchors.right: parent.right - peak: model.peak; - anchors.verticalCenter: parent.verticalCenter - visible: ((bar.currentIndex === 1 && isVR) || - (bar.currentIndex === 0 && !isVR)) && - AudioScriptingInterface.devices.input.peakValuesAvailable; - } + } } } Separator { id: thirdSeparator; - anchors.top: loopbackAudio.visible ? loopbackAudio.bottom : inputView.bottom; + anchors.top: inputView.visible ? inputView.bottom : outputDeviceHeader.bottom; anchors.topMargin: 10; }