agl-compositor: Conversion to agl-compositor
[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: Screen.height * (215.0 / 1920.0)
8     flags: Qt.FramelessWindowHint
9     visible: true
10     //color: "#aaaa0000"
11     MediaArea {
12     }
13
14     Timer {
15         id:informationTimer
16         interval: 3000
17         running: false
18         repeat: true
19         onTriggered: {
20             bottomInformation.visible = false
21         }
22     }
23
24     Item {
25         id: bottomInformation
26         width: parent.width
27         height: 215
28         anchors.bottom: parent.bottom
29         visible: false
30         Text {
31             id: bottomText
32             anchors.centerIn: parent
33             font.pixelSize: 25
34             font.letterSpacing: 5
35             horizontalAlignment: Text.AlignHCenter
36             color: "white"
37             text: ""
38             z:1
39         }
40     }
41
42     Connections {
43         target: homescreenHandler
44         onShowInformation: {
45             bottomText.text = info
46             bottomInformation.visible = true
47             informationTimer.restart()
48         }
49     }
50 }