Use toggles for screen share settings

This commit is contained in:
Nicolas Werner 2021-02-25 20:45:59 +01:00
parent 0bf3f4634d
commit b55e6fbae8
No known key found for this signature in database
GPG key ID: 13675F31AD04A41C

View file

@ -67,38 +67,49 @@ Popup {
} }
CheckBox { GridLayout {
id: pipCheckBox columns: 2
rowSpacing: 10
Layout.margins: 8
enabled: CallManager.cameras.length > 0 MatrixText {
checked: Settings.screenSharePiP text: qsTr("Include your camera picture-in-picture")
Layout.alignment: Qt.AlignLeft }
Layout.leftMargin: 8
Layout.rightMargin: 8
text: qsTr("Include your camera picture-in-picture")
}
CheckBox { ToggleButton {
id: remoteVideoCheckBox id: pipCheckBox
Layout.alignment: Qt.AlignLeft enabled: CallManager.cameras.length > 0
Layout.leftMargin: 8 checked: Settings.screenSharePiP
Layout.rightMargin: 8 Layout.alignment: Qt.AlignRight
text: qsTr("Request remote camera") }
checked: Settings.screenShareRemoteVideo
ToolTip.text: qsTr("View your callee's camera like a regular video call")
ToolTip.visible: hovered
}
CheckBox { MatrixText {
id: hideCursorCheckBox text: qsTr("Request remote camera")
ToolTip.text: qsTr("View your callee's camera like a regular video call")
ToolTip.visible: hovered
}
ToggleButton {
id: remoteVideoCheckBox
Layout.alignment: Qt.AlignRight
checked: Settings.screenShareRemoteVideo
ToolTip.text: qsTr("View your callee's camera like a regular video call")
ToolTip.visible: hovered
}
MatrixText {
text: qsTr("Hide mouse cursor")
}
ToggleButton {
id: hideCursorCheckBox
Layout.alignment: Qt.AlignRight
checked: Settings.screenShareHideCursor
}
Layout.alignment: Qt.AlignLeft
Layout.leftMargin: 8
Layout.rightMargin: 8
Layout.bottomMargin: 8
text: qsTr("Hide mouse cursor")
checked: Settings.screenShareHideCursor
} }
RowLayout { RowLayout {