Debian Codegraph @

notify/example/CustomNotification.qml

raw
1 import QtQuick 2.4
2 import Lomiri.Components 1.3
3 import "../src"
4
5 NotificationBase {
6 id: base
7
8 Rectangle {
9 anchors.centerIn: parent
10 height: units.gu(20)
11 width: height
12 radius: height / 2
13 color: LomiriColors.green
14 Label {
15 anchors.centerIn: parent
16 text: base.title
17 color: "#ffffff"
18 }
19 AbstractButton {
20 anchors.fill: parent
21 onClicked: base.closed()
22 }
23 }
24 }