From 3c349ea2f294d5e0e7f94ed471265b87aaed9d22 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 17 Mar 2017 16:30:36 +0100 Subject: Use spacing instead of gridunit --- components/package/contents/ui/Notification.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'components') diff --git a/components/package/contents/ui/Notification.qml b/components/package/contents/ui/Notification.qml index 62128961..2e01eabb 100644 --- a/components/package/contents/ui/Notification.qml +++ b/components/package/contents/ui/Notification.qml @@ -6,8 +6,8 @@ MouseArea { id: popup anchors.top: parent.top anchors.horizontalCenter: parent.horizontalCenter - width: Math.max(300, message.contentWidth + (Kirigami.Units.gridUnit * 2)) - height: message.contentHeight + (Kirigami.Units.gridUnit * 2) + width: Math.max(300, message.contentWidth + (Kirigami.Units.largeSpacing * 2)) + height: Math.max(50, message.contentHeight + (Kirigami.Units.largeSpacing * 2)) property alias title: message.text property alias timeout: hideTimer.interval property alias background: bg.color @@ -59,9 +59,9 @@ MouseArea { font.pixelSize: 16 color: Kirigami.Theme.highlightedTextColor anchors.left: parent.left - anchors.leftMargin: Kirigami.Units.gridUnit + anchors.leftMargin: Kirigami.Units.largeSpacing anchors.right: parent.right - anchors.rightMargin: Kirigami.Units.gridUnit + anchors.rightMargin: Kirigami.Units.largeSpacing horizontalAlignment: Text.AlignHCenter elide: Text.ElideRight wrapMode: Text.Wrap -- cgit v1.2.3