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
|
2020-07-21 21:03:22 +00:00
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: element5
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "Sounds settings"
|
|
|
|
text: qsTrId("sounds-settings")
|
2020-07-21 21:03:22 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 20
|
|
|
|
}
|
2020-09-17 10:18:16 +00:00
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: labelVolume
|
|
|
|
anchors.top: element5.bottom
|
|
|
|
anchors.topMargin: Style.current.bigPadding
|
2020-09-23 18:01:33 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-09-23 20:49:15 +00:00
|
|
|
//% "Sound volume"
|
|
|
|
text: qsTrId("sound-volume") + " " + volume.value
|
2020-09-17 10:18:16 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusSlider {
|
|
|
|
id: volume
|
|
|
|
anchors.top: labelVolume.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
2020-09-23 18:01:33 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-09-17 10:18:16 +00:00
|
|
|
minimumValue: 0.0
|
|
|
|
maximumValue: 1.0
|
|
|
|
value: appSettings.volume
|
|
|
|
stepSize: 0.1
|
|
|
|
onValueChanged: {
|
|
|
|
appSettings.volume = volume.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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}
|
|
|
|
}
|
|
|
|
##^##*/
|