summaryrefslogtreecommitdiffstats
path: root/framework/qml/NotificationPopup.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-24 13:07:14 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-24 13:08:47 +0200
commit53ed989a2631a84facb2bb52d87fc9563bdfb255 (patch)
tree2da4d4dca9e0afcebe7ca2b3a4757b315d0991ed /framework/qml/NotificationPopup.qml
parentacf2a53fea8fdbe366627e45fffe87434e3c2e7e (diff)
downloadkube-53ed989a2631a84facb2bb52d87fc9563bdfb255.tar.gz
kube-53ed989a2631a84facb2bb52d87fc9563bdfb255.zip
Use Kube.Units
Diffstat (limited to 'framework/qml/NotificationPopup.qml')
-rw-r--r--framework/qml/NotificationPopup.qml9
1 files changed, 4 insertions, 5 deletions
diff --git a/framework/qml/NotificationPopup.qml b/framework/qml/NotificationPopup.qml
index 2d04575b..e5865881 100644
--- a/framework/qml/NotificationPopup.qml
+++ b/framework/qml/NotificationPopup.qml
@@ -1,7 +1,6 @@
1import QtQuick 2.0 1import QtQuick 2.0
2import QtQuick.Controls 2.0 2import QtQuick.Controls 2.0
3 3
4import org.kde.kirigami 1.0 as Kirigami
5import org.kube.framework 1.0 as Kube 4import org.kube.framework 1.0 as Kube
6 5
7 6
@@ -38,8 +37,8 @@ MouseArea {
38 onTriggered: popup.hide() 37 onTriggered: popup.hide()
39 } 38 }
40 39
41 width: Math.max(300, message.contentWidth + (Kirigami.Units.largeSpacing * 2)) 40 width: Math.max(300, message.contentWidth + (Kube.Units.largeSpacing * 2))
42 height: Math.max(50, message.contentHeight + (Kirigami.Units.largeSpacing * 2)) 41 height: Math.max(50, message.contentHeight + (Kube.Units.largeSpacing * 2))
43 42
44 visible: opacity > 0 43 visible: opacity > 0
45 opacity: 0.0 44 opacity: 0.0
@@ -66,9 +65,9 @@ MouseArea {
66 anchors { 65 anchors {
67 verticalCenter: popup.verticalCenter 66 verticalCenter: popup.verticalCenter
68 left: parent.left 67 left: parent.left
69 leftMargin: Kirigami.Units.largeSpacing 68 leftMargin: Kube.Units.largeSpacing
70 right: parent.right 69 right: parent.right
71 rightMargin: Kirigami.Units.largeSpacing 70 rightMargin: Kube.Units.largeSpacing
72 } 71 }
73 72
74 font.pixelSize: 16 73 font.pixelSize: 16