parent
02dcc106e4
commit
1aba28b1cf
|
@ -23,7 +23,7 @@ Rectangle {
|
||||||
Audio {
|
Audio {
|
||||||
id: sendMessageSound
|
id: sendMessageSound
|
||||||
source: "../../../../sounds/send_message.wav"
|
source: "../../../../sounds/send_message.wav"
|
||||||
volume: 0.2
|
volume: appSettings.volume
|
||||||
}
|
}
|
||||||
|
|
||||||
function interpretMessage(msg) {
|
function interpretMessage(msg) {
|
||||||
|
|
|
@ -3,13 +3,14 @@ import QtQuick.Controls 2.13
|
||||||
import QtQuick.Layouts 1.13
|
import QtQuick.Layouts 1.13
|
||||||
import "../../../../imports"
|
import "../../../../imports"
|
||||||
import "../../../../shared"
|
import "../../../../shared"
|
||||||
|
import "../../../../shared/status"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: soundsContainer
|
id: soundsContainer
|
||||||
width: 200
|
anchors.right: parent.right
|
||||||
height: 200
|
anchors.rightMargin: contentMargin
|
||||||
Layout.fillHeight: true
|
anchors.left: parent.left
|
||||||
Layout.fillWidth: true
|
anchors.leftMargin: contentMargin
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: element5
|
id: element5
|
||||||
|
@ -22,4 +23,26 @@ Item {
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
font.pixelSize: 20
|
font.pixelSize: 20
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StyledText {
|
||||||
|
id: labelVolume
|
||||||
|
anchors.top: element5.bottom
|
||||||
|
anchors.topMargin: Style.current.bigPadding
|
||||||
|
text: qsTrId("Sound volume") + " " + volume.value
|
||||||
|
font.pixelSize: 15
|
||||||
|
}
|
||||||
|
|
||||||
|
StatusSlider {
|
||||||
|
id: volume
|
||||||
|
anchors.top: labelVolume.bottom
|
||||||
|
anchors.topMargin: Style.current.padding
|
||||||
|
minimumValue: 0.0
|
||||||
|
maximumValue: 1.0
|
||||||
|
value: appSettings.volume
|
||||||
|
stepSize: 0.1
|
||||||
|
onValueChanged: {
|
||||||
|
appSettings.volume = volume.value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,13 +47,14 @@ ApplicationWindow {
|
||||||
id: sendMessageSound
|
id: sendMessageSound
|
||||||
audioRole: Audio.NotificationRole
|
audioRole: Audio.NotificationRole
|
||||||
source: "../../../../sounds/send_message.wav"
|
source: "../../../../sounds/send_message.wav"
|
||||||
|
volume: appSettings.volume
|
||||||
}
|
}
|
||||||
|
|
||||||
Audio {
|
Audio {
|
||||||
id: notificationSound
|
id: notificationSound
|
||||||
audioRole: Audio.NotificationRole
|
audioRole: Audio.NotificationRole
|
||||||
source: "../../../../sounds/notification.wav"
|
source: "../../../../sounds/notification.wav"
|
||||||
volume: 0.2
|
volume: appSettings.volume
|
||||||
}
|
}
|
||||||
|
|
||||||
signal settingsLoaded()
|
signal settingsLoaded()
|
||||||
|
@ -68,6 +69,7 @@ ApplicationWindow {
|
||||||
property bool compactMode
|
property bool compactMode
|
||||||
property string locale: "en"
|
property string locale: "en"
|
||||||
property var recentEmojis: []
|
property var recentEmojis: []
|
||||||
|
property real volume: 0.2
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: profileModel
|
target: profileModel
|
||||||
|
|
Loading…
Reference in New Issue