diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-06-21 16:44:43 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-06-21 16:44:43 +0200 |
commit | c72539d2cf1dfa43a0a874ea4877d6047ba3dcb8 (patch) | |
tree | 9346eb62b1036742544e67003335755261202b7d /components/package/contents/ui/FocusComposer.qml | |
parent | 1f51e1c94f31212a7953065537afa3f6a13bb377 (diff) | |
download | kube-c72539d2cf1dfa43a0a874ea4877d6047ba3dcb8.tar.gz kube-c72539d2cf1dfa43a0a874ea4877d6047ba3dcb8.zip |
create OverlayDialog component and use it everywhere
Diffstat (limited to 'components/package/contents/ui/FocusComposer.qml')
-rw-r--r-- | components/package/contents/ui/FocusComposer.qml | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml index 5eec09d8..4d5499d9 100644 --- a/components/package/contents/ui/FocusComposer.qml +++ b/components/package/contents/ui/FocusComposer.qml | |||
@@ -21,41 +21,21 @@ import QtQuick.Layouts 1.1 | |||
21 | 21 | ||
22 | import org.kde.kirigami 1.0 as Kirigami | 22 | import org.kde.kirigami 1.0 as Kirigami |
23 | 23 | ||
24 | Item { | 24 | import org.kube.components 1.0 as KubeComponents |
25 | |||
26 | KubeComponents.OverlayDialog { | ||
25 | id: root | 27 | id: root |
26 | 28 | ||
27 | function loadMessage(message, loadAsDraft) { | 29 | function loadMessage(message, loadAsDraft) { |
28 | composer.loadMessage(message, loadAsDraft); | 30 | composer.loadMessage(message, loadAsDraft); |
29 | } | 31 | } |
30 | 32 | ||
31 | 33 | Item { | |
32 | Rectangle { | ||
33 | anchors.fill: parent | ||
34 | |||
35 | color: "black" | ||
36 | opacity: 0.6 | ||
37 | } | ||
38 | |||
39 | MouseArea { | ||
40 | anchors.fill: parent | ||
41 | |||
42 | onClicked: { | ||
43 | root.destroy() | ||
44 | } | ||
45 | } | ||
46 | |||
47 | Rectangle { | ||
48 | anchors.centerIn: parent | 34 | anchors.centerIn: parent |
49 | 35 | ||
50 | height: root.height * 0.8 | 36 | height: root.height * 0.8 |
51 | width: root.width * 0.8 | 37 | width: root.width * 0.8 |
52 | 38 | ||
53 | color: Kirigami.Theme.backgroundColor | ||
54 | |||
55 | MouseArea { | ||
56 | anchors.fill: parent | ||
57 | } | ||
58 | |||
59 | ColumnLayout { | 39 | ColumnLayout { |
60 | 40 | ||
61 | anchors { | 41 | anchors { |