summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui
diff options
context:
space:
mode:
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r--components/package/contents/ui/EditAccountDialog.qml30
-rw-r--r--components/package/contents/ui/FocusComposer.qml28
-rw-r--r--components/package/contents/ui/NewAccountDialog.qml27
-rw-r--r--components/package/contents/ui/OverlayDialog.qml58
4 files changed, 70 insertions, 73 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}
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
22import org.kde.kirigami 1.0 as Kirigami 22import org.kde.kirigami 1.0 as Kirigami
23 23
24Item { 24import org.kube.components 1.0 as KubeComponents
25
26KubeComponents.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 {
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 {
diff --git a/components/package/contents/ui/OverlayDialog.qml b/components/package/contents/ui/OverlayDialog.qml
new file mode 100644
index 00000000..1138c78c
--- /dev/null
+++ b/components/package/contents/ui/OverlayDialog.qml
@@ -0,0 +1,58 @@
1/*
2 * Copyright (C) 2016 Michael Bohlender <michael.bohlender@kdemail.net>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18import QtQuick 2.4
19import QtQuick.Controls 1.4
20import QtQuick.Layouts 1.1
21
22import org.kde.kirigami 1.0 as Kirigami
23
24import org.kube.framework.settings 1.0 as KubeSettings
25import org.kube.framework.domain 1.0 as KubeFramework
26
27Item {
28 id: root
29
30 Rectangle {
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
47 anchors.centerIn: parent
48
49 height: root.height * 0.8
50 width: root.width * 0.8
51
52 color: Kirigami.Theme.backgroundColor
53
54 MouseArea {
55 anchors.fill: parent
56 }
57 }
58} \ No newline at end of file