From baafe1ad0935082aaecafffd8f694805b3436518 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Tue, 20 Jun 2017 16:13:41 -0700 Subject: [PATCH] give Audio menu mute its own row --- interface/resources/qml/hifi/audio/Audio.qml | 50 +++++++++++--------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/interface/resources/qml/hifi/audio/Audio.qml b/interface/resources/qml/hifi/audio/Audio.qml index 8e7d040fab..8739f0559c 100644 --- a/interface/resources/qml/hifi/audio/Audio.qml +++ b/interface/resources/qml/hifi/audio/Audio.qml @@ -52,34 +52,40 @@ Rectangle { Separator { visible: root.showTitle() } - Grid { - columns: 2; + ColumnLayout { x: 16; // padding does not work spacing: 16; - AudioControls.CheckBox { - text: qsTr("Mute microphone"); - isRedCheck: true; - checked: Audio.muted; - onClicked: { - Audio.muted = checked; - checked = Qt.binding(function() { return Audio.muted; }); // restore binding + // mute is in its own row + RowLayout { + AudioControls.CheckBox { + text: qsTr("Mute microphone"); + isRedCheck: true; + checked: Audio.muted; + onClicked: { + Audio.muted = checked; + checked = Qt.binding(function() { return Audio.muted; }); // restore binding + } } } - AudioControls.CheckBox { - text: qsTr("Enable noise reduction"); - checked: Audio.noiseReduction; - onClicked: { - Audio.noiseReduction = checked; - checked = Qt.binding(function() { return Audio.noiseReduction; }); // restore binding + + RowLayout { + spacing: 16; + AudioControls.CheckBox { + text: qsTr("Enable noise reduction"); + checked: Audio.noiseReduction; + onClicked: { + Audio.noiseReduction = checked; + checked = Qt.binding(function() { return Audio.noiseReduction; }); // restore binding + } } - } - AudioControls.CheckBox { - text: qsTr("Show audio level meter"); - checked: AvatarInputs.showAudioTools; - onClicked: { - AvatarInputs.showAudioTools = checked; - checked = Qt.binding(function() { return AvatarInputs.showAudioTools; }); // restore binding + AudioControls.CheckBox { + text: qsTr("Show audio level meter"); + checked: AvatarInputs.showAudioTools; + onClicked: { + AvatarInputs.showAudioTools = checked; + checked = Qt.binding(function() { return AvatarInputs.showAudioTools; }); // restore binding + } } } }