Image {
width: 1080
height: 215
- source: './images/Utility_Logo_Background-01.png'
+ source: './images/Utility_Logo_Background-01.svg'
property bool displayVolume: false;
MouseArea {
Image {
id: logo_image
anchors.centerIn: parent
- source: './images/Utility_Logo_Colour-01.png'
+ source: './images/Utility_Logo_Grey-01.svg'
}
Timer {
id: mv
objectName: "mv"
onVolumeChanged: slider.value = volume
+ Component.onCompleted: {
+ mv.open(bindingAddress);
+ }
}
Item {
font.pixelSize: 36
anchors.horizontalCenter: parent.horizontalCenter
color: "white"
- text: "Master Volume"
+ text: qsTr("Active Volume")
}
RowLayout {
id: slider
Layout.fillWidth: true
from: 0
- to: 65536
- stepSize: 256
+ to: 100
+ stepSize: 1
snapMode: Slider.SnapOnRelease
onValueChanged: mv.volume = value
Component.onCompleted: value = mv.volume
if (pressed) {volume_timer.stop()}
else {volume_timer.restart()}
}
- background: Rectangle {
- id: slider_bg
- height: 16
- color: "#59FF7F"
- }
- handle: Rectangle {
- anchors.verticalCenter: slider_bg.verticalCenter
- width: 48
- height: 48
- radius: 24
- x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
- y: slider.topPadding + slider.availableHeight / 2 - height / 2
- color: "white"
- }
}
Label {
font.pixelSize: 36