2020-07-21 17:03:22 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import "../../../../imports"
|
|
|
|
import "../../../../shared"
|
2020-09-17 12:18:16 +02:00
|
|
|
import "../../../../shared/status"
|
2020-07-21 17:03:22 -04:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: soundsContainer
|
2020-09-23 14:01:33 -04:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2021-04-08 11:44:58 -04:00
|
|
|
clip: true
|
2020-07-21 17:03:22 -04:00
|
|
|
|
2021-03-18 10:33:39 +01:00
|
|
|
Item {
|
2021-04-08 11:44:58 -04:00
|
|
|
width: profileContainer.profileContentWidth
|
|
|
|
|
2021-03-18 10:33:39 +01:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-09-17 12:18:16 +02:00
|
|
|
|
2021-03-18 10:33:39 +01:00
|
|
|
StyledText {
|
|
|
|
id: labelVolume
|
2021-03-24 13:44:35 -04:00
|
|
|
anchors.top: parent.top
|
2021-03-24 13:46:34 -04:00
|
|
|
anchors.topMargin: 24
|
2021-03-18 10:33:39 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
//% "Sound volume"
|
|
|
|
text: qsTrId("sound-volume") + " " + volume.value
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
2020-09-17 12:18:16 +02:00
|
|
|
|
2021-03-18 10:33:39 +01:00
|
|
|
StatusSlider {
|
|
|
|
id: volume
|
|
|
|
anchors.top: labelVolume.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
minimumValue: 0.0
|
|
|
|
maximumValue: 1.0
|
|
|
|
value: appSettings.volume
|
|
|
|
stepSize: 0.1
|
|
|
|
onValueChanged: {
|
|
|
|
appSettings.volume = volume.value
|
|
|
|
}
|
2020-09-17 12:18:16 +02:00
|
|
|
}
|
|
|
|
}
|
2020-07-21 17:03:22 -04:00
|
|
|
}
|
2020-09-23 14:01:33 -04:00
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|