From cd602feafc99cd5ebc51096a9f8fbdce9e742849 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 2 Nov 2017 09:28:20 +0100 Subject: place popup notificaitons at the bottom --- components/kube/contents/ui/Kube.qml | 6 ++++-- framework/qml/NotificationPopup.qml | 9 ++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 008d4899..344dbdc7 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml @@ -402,8 +402,10 @@ Controls2.ApplicationWindow { id: notificationPopup anchors { - top: parent.top - horizontalCenter: parent.horizontalCenter + left: parent.left + leftMargin: app.sidebarWidth - 3 // so it does not align with the border + bottom: parent.bottom + bottomMargin: Kube.Units.gridUnit * 4 } } //END Notification diff --git a/framework/qml/NotificationPopup.qml b/framework/qml/NotificationPopup.qml index e5865881..0d51d485 100644 --- a/framework/qml/NotificationPopup.qml +++ b/framework/qml/NotificationPopup.qml @@ -25,7 +25,7 @@ MouseArea { function notify(text) { popup.title = text - bg.color = Kube.Colors.textColor + bg.color = Kube.Colors.buttonColor show() } @@ -53,10 +53,10 @@ MouseArea { Rectangle { id: bg - anchors.fill: parent - - opacity: 0.6 + border.width: 1 + border.color: Kube.Colors.textColor + opacity: 0.9 } Kube.Label { @@ -72,7 +72,6 @@ MouseArea { font.pixelSize: 16 - color: Kube.Colors.highlightedTextColor horizontalAlignment: Text.AlignHCenter elide: Text.ElideRight wrapMode: Text.Wrap -- cgit v1.2.3