aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/qml/bottompanel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'homescreen/qml/bottompanel.qml')
-rw-r--r--homescreen/qml/bottompanel.qml50
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()
+ }
+ }
+}