X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fqml%2FMediaAreaBlank.qml;h=7a9e8af367dd340cdb2b09b61f8683b595b3222d;hb=refs%2Ftags%2F12.93.0;hp=c3a5f89f83d1fdf43705b05c0f8ce3a22a7442f0;hpb=856f9d9de4473a537ce4084271008fd40e230e8f;p=apps%2Fhomescreen.git diff --git a/homescreen/qml/MediaAreaBlank.qml b/homescreen/qml/MediaAreaBlank.qml index c3a5f89..7a9e8af 100644 --- a/homescreen/qml/MediaAreaBlank.qml +++ b/homescreen/qml/MediaAreaBlank.qml @@ -19,11 +19,12 @@ import QtQuick 2.2 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import AGL.Demo.Controls 1.0 +/* import MasterVolume 1.0 +*/ Image { - width: 1080 - height: 215 + anchors.fill: parent source: './images/Utility_Logo_Background-01.svg' property bool displayVolume: false; @@ -40,14 +41,14 @@ Image { } Image { - id: logo_image + id: logo_image anchors.centerIn: parent 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 } @@ -67,13 +68,16 @@ Image { transitions: Transition { NumberAnimation { property: "opacity"; duration: 500} } - +/* MasterVolume { id: mv objectName: "mv" onVolumeChanged: slider.value = volume + Component.onCompleted: { + mv.open(bindingAddress); + } } - +*/ Item { id: master_volume anchors.fill: parent @@ -101,11 +105,13 @@ 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()}