wrong address in sticker in waiting room

This commit is contained in:
Gaelle Braud 2024-10-07 18:06:45 +02:00
parent 2fce83fb43
commit 92f1eaa88f
3 changed files with 50 additions and 211 deletions

View file

@ -11,17 +11,52 @@ ColumnLayout {
property string speakerDevice: outputAudioDeviceCBox.currentText
property alias micVolume: microVolume.value
property string microDevice: inputAudioDeviceCBox.currentText
property bool ringerDevicesVisible: false
property bool backgroundVisible: true
spacing: 40 * DefaultStyle.dp
RoundedPane {
background.visible: mainItem.backgroundVisible
Layout.alignment: Qt.AlignHCenter
height: contentItem.implicitHeight + topPadding + bottomPadding
Layout.fillWidth: true
topPadding: 25 * DefaultStyle.dp
bottomPadding: 25 * DefaultStyle.dp
leftPadding: 25 * DefaultStyle.dp
rightPadding: 25 * DefaultStyle.dp
topPadding: background.visible ? 25 * DefaultStyle.dp : 0
bottomPadding: background.visible ? 25 * DefaultStyle.dp : 0
leftPadding: background.visible ? 25 * DefaultStyle.dp : 0
rightPadding: background.visible ? 25 * DefaultStyle.dp : 0
contentItem: ColumnLayout {
spacing: 40 * DefaultStyle.dp
spacing: mainItem.spacing
ColumnLayout {
spacing: 12 * DefaultStyle.dp
RowLayout {
spacing: 8 * DefaultStyle.dp
EffectImage {
imageSource: AppIcons.bellRinger
colorizationColor: DefaultStyle.main1_500_main
Layout.preferredWidth: 24 * DefaultStyle.dp
Layout.preferredHeight: 24 * DefaultStyle.dp
imageWidth: 24 * DefaultStyle.dp
imageHeight: 24 * DefaultStyle.dp
}
Text {
text: qsTr("Sonnerie - Appels entrants")
font: Typography.p2l
color: DefaultStyle.main2_600
Layout.fillWidth: true
}
}
ComboSetting {
Layout.fillWidth: true
Layout.topMargin: 12 * DefaultStyle.dp
Layout.preferredWidth: parent.width
entries: SettingsCpp.ringerDevices
propertyName: "ringerDevice"
propertyOwner: SettingsCpp
}
Item {
Layout.fillHeight: true
}
}
ColumnLayout {
spacing: 12 * DefaultStyle.dp
RowLayout {
@ -36,7 +71,7 @@ ColumnLayout {
}
Text {
text: qsTr("Haut-parleurs")
font.pixelSize: 14 * DefaultStyle.dp
font: Typography.p2l
Layout.fillWidth: true
}
}
@ -75,7 +110,7 @@ ColumnLayout {
}
Text {
text: qsTr("Microphone")
font.pixelSize: 14 * DefaultStyle.dp
font: Typography.p2l
Layout.fillWidth: true
}
}
@ -153,7 +188,7 @@ ColumnLayout {
}
Text {
text: qsTr("Caméra")
font.pixelSize: 14 * DefaultStyle.dp
font: Typography.p2l
Layout.fillWidth: true
}
}

View file

@ -12,6 +12,7 @@ AbstractSettingsLayout {
id: content
ColumnLayout {
RowLayout {
spacing: 47 * DefaultStyle.dp
ColumnLayout {
Item {
Layout.preferredWidth: 341 * DefaultStyle.dp
@ -20,8 +21,7 @@ AbstractSettingsLayout {
ColumnLayout {
Layout.rightMargin: 25 * DefaultStyle.dp
Layout.topMargin: 36 * DefaultStyle.dp
Layout.leftMargin: 64 * DefaultStyle.dp
spacing: 40 * DefaultStyle.dp
spacing: 20 * DefaultStyle.dp
SwitchSetting {
titleText: qsTr("Annulateur d'écho")
subTitleText: qsTr("Évite que de l'écho soit entendu par votre correspondant")
@ -46,6 +46,7 @@ AbstractSettingsLayout {
Layout.bottomMargin: 16 * DefaultStyle.dp
}
RowLayout {
spacing: 47 * DefaultStyle.dp
ColumnLayout {
ColumnLayout {
Layout.preferredWidth: 341 * DefaultStyle.dp
@ -68,208 +69,11 @@ AbstractSettingsLayout {
Layout.fillHeight: true
}
}
ColumnLayout {
MultimediaSettings {
ringerDevicesVisible: true
backgroundVisible: false
spacing: 20 * DefaultStyle.dp
Layout.rightMargin: 44 * DefaultStyle.dp
Layout.topMargin: 20 * DefaultStyle.dp
Layout.leftMargin: 64 * DefaultStyle.dp
ColumnLayout {
spacing: 0
RowLayout {
EffectImage {
imageSource: AppIcons.bellRinger
colorizationColor: DefaultStyle.main1_500_main
Layout.preferredWidth: 24 * DefaultStyle.dp
Layout.preferredHeight: 24 * DefaultStyle.dp
imageWidth: 24 * DefaultStyle.dp
imageHeight: 24 * DefaultStyle.dp
}
Text {
text: qsTr("Sonnerie - Appels entrants")
Layout.leftMargin: 9
font: Typography.p2l
color: DefaultStyle.main2_600
Layout.fillWidth: true
}
}
ComboSetting {
Layout.fillWidth: true
Layout.topMargin: 12 * DefaultStyle.dp
Layout.preferredWidth: parent.width
entries: SettingsCpp.ringerDevices
propertyName: "ringerDevice"
propertyOwner: SettingsCpp
}
Item {
Layout.fillHeight: true
}
}
ColumnLayout {
spacing: 0
RowLayout {
EffectImage {
imageSource: AppIcons.speaker
colorizationColor: DefaultStyle.main1_500_main
Layout.preferredWidth: 24 * DefaultStyle.dp
Layout.preferredHeight: 24 * DefaultStyle.dp
imageWidth: 24 * DefaultStyle.dp
imageHeight: 24 * DefaultStyle.dp
}
Text {
text: qsTr("Audio")
Layout.leftMargin: 9
font: Typography.p2l
color: DefaultStyle.main2_600
Layout.fillWidth: true
}
}
ComboSetting {
Layout.fillWidth: true
Layout.topMargin: 12 * DefaultStyle.dp
Layout.preferredWidth: parent.width
entries: SettingsCpp.playbackDevices
propertyName: "playbackDevice"
propertyOwner: SettingsCpp
}
Slider {
id: speakerVolume
Layout.fillWidth: true
Layout.topMargin: 22 * DefaultStyle.dp
from: 0.0
to: 1.0
value: SettingsCpp.playbackGain
onMoved: {
SettingsCpp.lSetPlaybackGain(value)
}
}
Item {
Layout.fillHeight: true
}
}
ColumnLayout {
spacing: 0
RowLayout {
EffectImage {
imageSource: AppIcons.microphone
colorizationColor: DefaultStyle.main1_500_main
Layout.preferredWidth: 24 * DefaultStyle.dp
Layout.preferredHeight: 24 * DefaultStyle.dp
imageWidth: 24 * DefaultStyle.dp
imageHeight: 24 * DefaultStyle.dp
}
Text {
text: qsTr("Microphone")
font: Typography.p2l
color: DefaultStyle.main2_600
Layout.fillWidth: true
Layout.leftMargin: 9
}
}
ComboSetting {
Layout.fillWidth: true
Layout.topMargin: 12 * DefaultStyle.dp
Layout.bottomMargin: 22 * DefaultStyle.dp
Layout.preferredWidth: parent.width
entries: SettingsCpp.captureDevices
propertyName: "captureDevice"
propertyOwner: SettingsCpp
}
Slider {
id: microVolume
Layout.fillWidth: true
Layout.bottomMargin: 19 * DefaultStyle.dp
from: 0.0
to: 1.0
value: SettingsCpp.captureGain
onMoved: {
SettingsCpp.lSetCaptureGain(value)
}
}
Timer {
id: audioTestSliderTimer
running: false
interval: 50
repeat: true
onTriggered: SettingsCpp.updateMicVolume()
}
Slider {
id: audioTestSlider
visible: !SettingsCpp.isInCall
Layout.fillWidth: true
enabled: false
Layout.preferredHeight: 10 * DefaultStyle.dp
background: Rectangle {
x: audioTestSlider.leftPadding
y: audioTestSlider.topPadding + audioTestSlider.availableHeight / 2 - height / 2
implicitWidth: 200 * DefaultStyle.dp
implicitHeight: 10 * DefaultStyle.dp
width: audioTestSlider.availableWidth
height: implicitHeight
radius: 2 * DefaultStyle.dp
color: DefaultStyle.grey_850
Rectangle {
width: audioTestSlider.visualPosition * parent.width
height: parent.height
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop { position: 0.0; color: DefaultStyle.vue_meter_light_green }
GradientStop { position: 1.0; color: DefaultStyle.vue_meter_dark_green }
}
radius: 2 * DefaultStyle.dp
}
}
handle: Item {visible: false}
}
Item {
Layout.fillHeight: true
}
}
ColumnLayout {
spacing: 0
RowLayout {
EffectImage {
imageSource: AppIcons.videoCamera
colorizationColor: DefaultStyle.main1_500_main
Layout.preferredWidth: 24 * DefaultStyle.dp
Layout.preferredHeight: 24 * DefaultStyle.dp
imageWidth: 24 * DefaultStyle.dp
imageHeight: 24 * DefaultStyle.dp
}
Text {
text: qsTr("Caméra")
font: Typography.p2l
color: DefaultStyle.main2_600
Layout.fillWidth: true
Layout.leftMargin: 9
}
}
ComboSetting {
Layout.fillWidth: true
Layout.topMargin: 12 * DefaultStyle.dp
Layout.preferredWidth: parent.width
entries: SettingsCpp.videoDevices
propertyName: "videoDevice"
propertyOwner: SettingsCpp
}
Item {
Layout.fillHeight: true
}
}
Connections {
target: SettingsCpp
function onMicVolumeChanged(volume) { audioTestSlider.value = volume}
}
Component.onCompleted: {
SettingsCpp.accessCallSettings()
audioTestSliderTimer.running = true
}
Component.onDestruction: {
audioTestSliderTimer.running = false
SettingsCpp.closeCallSettings()
}
}
}
}

View file

@ -33,7 +33,7 @@ RowLayout {
AccountProxy {
id: accounts
}
account: accounts.findAccountByAddress(mainItem.localAddress)
account: accounts.defaultAccount
}
RowLayout {
Layout.alignment: Qt.AlignHCenter