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=ebddb0c926060d89327a992747d841f19788f761;hpb=a9df3eb09a85d479f26a14cd71a41e1de087c1ef;p=apps%2Fhomescreen.git diff --git a/homescreen/qml/MediaAreaBlank.qml b/homescreen/qml/MediaAreaBlank.qml index ebddb0c..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,7 +68,7 @@ Image { transitions: Transition { NumberAnimation { property: "opacity"; duration: 500} } - +/* MasterVolume { id: mv objectName: "mv" @@ -76,7 +77,7 @@ Image { mv.open(bindingAddress); } } - +*/ Item { id: master_volume anchors.fill: parent @@ -107,8 +108,10 @@ Image { 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()}