meson.build: Use 0.0.24 as the agl compositor version
[apps/homescreen.git] / homescreen / qml / bottompanel.qml
1 import QtQuick 2.13
2 import QtQuick.Window 2.13
3
4 Window {
5     id: bottompanel
6     width: Screen.width
7     height: 216
8     flags: Qt.FramelessWindowHint
9     visible: true
10     color: "#33363a"
11
12     MediaArea {
13     }
14
15     Timer {
16         id:informationTimer
17         interval: 3000
18         running: false
19         repeat: true
20         onTriggered: {
21             bottomInformation.visible = false
22         }
23     }
24
25     Item {
26         id: bottomInformation
27         width: parent.width
28         height: 216
29         anchors.bottom: parent.bottom
30         visible: false
31         Text {
32             id: bottomText
33             anchors.centerIn: parent
34             font.pixelSize: 25
35             font.letterSpacing: 5
36             horizontalAlignment: Text.AlignHCenter
37             color: "white"
38             text: ""
39             z:1
40         }
41     }
42
43     Connections {
44         target: homescreenHandler
45         onShowInformation: {
46             bottomText.text = info
47             bottomInformation.visible = true
48             informationTimer.restart()
49         }
50     }
51 }