aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/qml/bottompanel.qml
blob: 1e0b10520134c81e440f3fcd1f039730d528c951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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()
        }
    }
}