2020-07-21 17:03:22 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 18:04:06 +03:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-07-21 17:03:22 -04:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
import StatusQ.Core 0.1
|
2021-11-01 10:27:19 +01:00
|
|
|
import StatusQ.Core.Theme 0.1
|
2021-10-22 14:48:52 +02:00
|
|
|
import StatusQ.Controls 0.1
|
2021-10-06 11:16:39 +02:00
|
|
|
|
2020-07-21 17:03:22 -04:00
|
|
|
Item {
|
|
|
|
id: soundsContainer
|
2021-12-09 14:28:02 +01:00
|
|
|
|
|
|
|
property var store
|
|
|
|
property int profileContentWidth
|
|
|
|
|
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-12-09 14:28:02 +01:00
|
|
|
width: profileContentWidth
|
2021-04-08 11:44:58 -04:00
|
|
|
|
2021-03-18 10:33:39 +01:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-09-17 12:18:16 +02:00
|
|
|
|
2021-10-06 11:16:39 +02:00
|
|
|
StatusBaseText {
|
2021-03-18 10:33:39 +01:00
|
|
|
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"
|
2021-10-11 14:41:42 +02:00
|
|
|
text: qsTrId("sound-volume") + " " + volume.value.toPrecision(1)
|
2021-03-18 10:33:39 +01:00
|
|
|
font.pixelSize: 15
|
2021-11-01 10:27:19 +01:00
|
|
|
color: Theme.palette.directColor1
|
2021-03-18 10:33:39 +01:00
|
|
|
}
|
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
|
2021-10-22 14:48:52 +02:00
|
|
|
from: 0.0
|
|
|
|
to: 1.0
|
2021-03-18 10:33:39 +01:00
|
|
|
stepSize: 0.1
|
|
|
|
onValueChanged: {
|
2021-10-20 11:50:50 +02:00
|
|
|
localAccountSensitiveSettings.volume = volume.value
|
2021-03-18 10:33:39 +01:00
|
|
|
}
|
2022-01-12 00:16:17 +01:00
|
|
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
value = localAccountSensitiveSettings.volume
|
|
|
|
}
|
2020-09-17 12:18:16 +02:00
|
|
|
}
|
|
|
|
}
|
2020-07-21 17:03:22 -04:00
|
|
|
}
|