summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/NewAccountDialog.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-06-21 16:44:43 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-06-21 16:44:43 +0200
commitc72539d2cf1dfa43a0a874ea4877d6047ba3dcb8 (patch)
tree9346eb62b1036742544e67003335755261202b7d /components/package/contents/ui/NewAccountDialog.qml
parent1f51e1c94f31212a7953065537afa3f6a13bb377 (diff)
downloadkube-c72539d2cf1dfa43a0a874ea4877d6047ba3dcb8.tar.gz
kube-c72539d2cf1dfa43a0a874ea4877d6047ba3dcb8.zip
create OverlayDialog component and use it everywhere
Diffstat (limited to 'components/package/contents/ui/NewAccountDialog.qml')
-rw-r--r--components/package/contents/ui/NewAccountDialog.qml27
1 files changed, 4 insertions, 23 deletions
diff --git a/components/package/contents/ui/NewAccountDialog.qml b/components/package/contents/ui/NewAccountDialog.qml
index fd1eeaec..3be72a78 100644
--- a/components/package/contents/ui/NewAccountDialog.qml
+++ b/components/package/contents/ui/NewAccountDialog.qml
@@ -23,38 +23,19 @@ import org.kde.kirigami 1.0 as Kirigami
23 23
24import org.kube.framework.settings 1.0 as KubeSettings 24import org.kube.framework.settings 1.0 as KubeSettings
25import org.kube.framework.domain 1.0 as KubeFramework 25import org.kube.framework.domain 1.0 as KubeFramework
26import org.kube.components 1.0 as KubeComponents
26 27
27Item { 28KubeComponents.OverlayDialog {
28 id: root 29 id: root
29 30
30 Rectangle { 31 Item {
31 id: background
32 anchors.fill: parent
33
34 color: "black"
35 opacity: 0.6
36 }
37
38 MouseArea {
39 anchors.fill: parent
40 onClicked: {
41 root.destroy()
42 }
43 }
44
45 Rectangle {
46 id: dialog 32 id: dialog
33
47 anchors.centerIn: parent 34 anchors.centerIn: parent
48 35
49 height: root.height * 0.8 36 height: root.height * 0.8
50 width: root.width * 0.8 37 width: root.width * 0.8
51 38
52 color: Kirigami.Theme.backgroundColor
53
54 MouseArea {
55 anchors.fill: parent
56 }
57
58 ToolBar { 39 ToolBar {
59 id: toolBar 40 id: toolBar
60 anchors { 41 anchors {