2020-07-21 21:03:22 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import "../../../../imports"
|
|
|
|
import "../../../../shared"
|
2020-09-17 10:18:16 +00:00
|
|
|
import "../../../../shared/status"
|
2020-07-21 21:03:22 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: soundsContainer
|
2020-09-23 18:01:33 +00:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2021-04-08 15:44:58 +00:00
|
|
|
clip: true
|
2020-07-21 21:03:22 +00:00
|
|
|
|
2021-03-18 09:33:39 +00:00
|
|
|
Item {
|
2021-04-08 15:44:58 +00:00
|
|
|
width: profileContainer.profileContentWidth
|
|
|
|
|
2021-03-18 09:33:39 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-09-17 10:18:16 +00:00
|
|
|
|
2021-03-18 09:33:39 +00:00
|
|
|
StyledText {
|
|
|
|
id: labelVolume
|
2021-03-24 17:44:35 +00:00
|
|
|
anchors.top: parent.top
|
2021-03-24 17:46:34 +00:00
|
|
|
anchors.topMargin: 24
|
2021-03-18 09:33:39 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
//% "Sound volume"
|
|
|
|
text: qsTrId("sound-volume") + " " + volume.value
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
2020-09-17 10:18:16 +00:00
|
|
|
|
2021-03-18 09:33:39 +00: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 10:18:16 +00:00
|
|
|
}
|
|
|
|
}
|
2020-07-21 21:03:22 +00:00
|
|
|
}
|
2020-09-23 18:01:33 +00:00
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|