diff options
Diffstat (limited to 'components/package/contents/ui/OverlayDialog.qml')
-rw-r--r-- | components/package/contents/ui/OverlayDialog.qml | 58 |
1 files changed, 58 insertions, 0 deletions
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 | |||
18 | import QtQuick 2.4 | ||
19 | import QtQuick.Controls 1.4 | ||
20 | import QtQuick.Layouts 1.1 | ||
21 | |||
22 | import org.kde.kirigami 1.0 as Kirigami | ||
23 | |||
24 | import org.kube.framework.settings 1.0 as KubeSettings | ||
25 | import org.kube.framework.domain 1.0 as KubeFramework | ||
26 | |||
27 | Item { | ||
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 | ||