diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-04-25 18:42:40 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-06-24 16:58:24 +0300 |
commit | eb227c1da7bdd2d81c5a95881d7eef18369ca96a (patch) | |
tree | cd3f2adc8b0a9a207bc3d4bed97ae7a6a3747e0f /homescreen/qml/bottompanel.qml | |
parent | c903d2fc00c1129ae7c8c3f3393d7cd08c9f2699 (diff) |
agl-compositor: Conversion to agl-compositor
Bug-AGL: SPEC-3447
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I7da44ec333217d355ba643d2d21bea7d8940ad2b
Diffstat (limited to 'homescreen/qml/bottompanel.qml')
-rw-r--r-- | homescreen/qml/bottompanel.qml | 50 |
1 files changed, 50 insertions, 0 deletions
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() + } + } +} |