X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fqml%2FMediaAreaBlank.qml;h=b758a7de356a995c9bff815223d4e52a26492c78;hb=refs%2Fheads%2Fquillback;hp=51fa6574231aaa25b5fd422c23fef99204b9b490;hpb=fbdd80c3c6fd9b27ce1cbe21941baa8a643050fe;p=apps%2Fhomescreen.git diff --git a/homescreen/qml/MediaAreaBlank.qml b/homescreen/qml/MediaAreaBlank.qml index 51fa657..b758a7d 100644 --- a/homescreen/qml/MediaAreaBlank.qml +++ b/homescreen/qml/MediaAreaBlank.qml @@ -22,9 +22,8 @@ import AGL.Demo.Controls 1.0 import MasterVolume 1.0 Image { - width: 1080 - height: 215 - source: './images/Utility_Logo_Background-01.png' + anchors.fill: parent + source: './images/Utility_Logo_Background-01.svg' property bool displayVolume: false; MouseArea { @@ -40,14 +39,14 @@ Image { } Image { - id: logo_image + id: logo_image anchors.centerIn: parent - source: './images/Utility_Logo_Colour-01.png' + source: './images/Utility_Logo_Grey-01.svg' } Timer { id: volume_timer - interval: 5000; running: false; repeat: false + interval: 3000; running: false; repeat: false onTriggered: displayVolume = false } @@ -84,7 +83,7 @@ Image { font.pixelSize: 36 anchors.horizontalCenter: parent.horizontalCenter color: "white" - text: "Master Volume" + text: qsTr("Master Volume") } RowLayout { @@ -101,29 +100,16 @@ Image { 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 + onPressedChanged: { 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