summaryrefslogtreecommitdiffstats
path: root/app/Notification.qml
blob: f4facfa803ddc7a3d4692b1ce795f9072d5abceb (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
import QtQuick 2.6
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.0

Item {
    height: msg.height
    width: parent.width
    Column {
        id: msg
        anchors.left: parent.left
        anchors.right: parent.right
        Label {
            text: '<b>' + name + '</b>'
            font.pixelSize: 42
            font.family: "Bitstream Vera", "Noto Emoji"
            wrapMode: Text.WordWrap
        }
        Label {
            text: message
            anchors.margins: 5
            anchors.left: parent.left
            anchors.right: parent.right
            font.pixelSize: 32
            font.family: "Bitstream Vera", "Noto Emoji"
            wrapMode: Text.WordWrap
        }
    }
}