X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fqml%2Fbottompanel.qml;fp=homescreen%2Fqml%2Fbottompanel.qml;h=1e0b10520134c81e440f3fcd1f039730d528c951;hb=9f1edc7b8e5ba92c14fb54ab6bab3596ec080dd4;hp=0000000000000000000000000000000000000000;hpb=866cae834b24aec99b8cf30d538681b1c5567a77;p=apps%2Fhomescreen.git diff --git a/homescreen/qml/bottompanel.qml b/homescreen/qml/bottompanel.qml new file mode 100644 index 0000000..1e0b105 --- /dev/null +++ b/homescreen/qml/bottompanel.qml @@ -0,0 +1,50 @@ +import QtQuick 2.13 +import QtQuick.Window 2.13 + +Window { + id: bottompanel + width: Screen.width + height: Screen.height * (215.0 / 1920.0) + flags: Qt.FramelessWindowHint + visible: true + //color: "#aaaa0000" + MediaArea { + } + + Timer { + id:informationTimer + interval: 3000 + running: false + repeat: true + onTriggered: { + bottomInformation.visible = false + } + } + + Item { + id: bottomInformation + width: parent.width + height: 215 + anchors.bottom: parent.bottom + visible: false + Text { + id: bottomText + anchors.centerIn: parent + font.pixelSize: 25 + font.letterSpacing: 5 + horizontalAlignment: Text.AlignHCenter + color: "white" + text: "" + z:1 + } + } + + Connections { + target: homescreenHandler + onShowInformation: { + bottomText.text = info + bottomInformation.visible = true + informationTimer.restart() + } + } +}