summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/EditAccountDialog.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/EditAccountDialog.qml
parent1f51e1c94f31212a7953065537afa3f6a13bb377 (diff)
downloadkube-c72539d2cf1dfa43a0a874ea4877d6047ba3dcb8.tar.gz
kube-c72539d2cf1dfa43a0a874ea4877d6047ba3dcb8.zip
create OverlayDialog component and use it everywhere
Diffstat (limited to 'components/package/contents/ui/EditAccountDialog.qml')
-rw-r--r--components/package/contents/ui/EditAccountDialog.qml30
1 files changed, 4 insertions, 26 deletions
diff --git a/components/package/contents/ui/EditAccountDialog.qml b/components/package/contents/ui/EditAccountDialog.qml
index 26934c94..887f50e1 100644
--- a/components/package/contents/ui/EditAccountDialog.qml
+++ b/components/package/contents/ui/EditAccountDialog.qml
@@ -23,48 +23,26 @@ 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.framework.theme 1.0 26import org.kube.components 1.0 as KubeComponents
27 27
28Item { 28KubeComponents.OverlayDialog {
29 id: root 29 id: root
30 30
31 property variant uiSource 31 property variant uiSource
32 property variant accountId 32 property variant accountId
33 33
34 Rectangle { 34 Item {
35 id: background
36
37 anchors.fill: parent
38
39 color: "black"
40 opacity: 0.9
41 }
42
43 MouseArea {
44 anchors.fill: parent
45 onClicked: {
46 root.destroy()
47 }
48 }
49
50 Rectangle {
51 id: dialog 35 id: dialog
52 anchors.centerIn: parent 36 anchors.centerIn: parent
53 37
54 height: root.height * 0.8 38 height: root.height * 0.8
55 width: root.width * 0.8 39 width: root.width * 0.8
56 40
57 color: Kirigami.Theme.backgroundColor
58
59 MouseArea {
60 anchors.fill: parent
61 }
62
63 Loader { 41 Loader {
64 anchors.fill: parent 42 anchors.fill: parent
65 43
66 source: root.uiSource 44 source: root.uiSource
67 onLoaded: item.accountId = root.accountId 45 onLoaded: item.accountId = root.accountId
68 } 46 }
69 } 47 }
70} 48}