summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/Outbox.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-06-22 10:46:38 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-06-22 10:46:38 +0200
commit6f4aff0a9b20b7564b43445d2c9a4d9f2561da4c (patch)
treed739ee5a616213e43330f0bafab0dde2fbf178c0 /components/package/contents/ui/Outbox.qml
parent76c5125052cb7deb116fbdf453e5512b6d79ca4b (diff)
downloadkube-6f4aff0a9b20b7564b43445d2c9a4d9f2561da4c.tar.gz
kube-6f4aff0a9b20b7564b43445d2c9a4d9f2561da4c.zip
initial outbox component
Diffstat (limited to 'components/package/contents/ui/Outbox.qml')
-rw-r--r--components/package/contents/ui/Outbox.qml54
1 files changed, 54 insertions, 0 deletions
diff --git a/components/package/contents/ui/Outbox.qml b/components/package/contents/ui/Outbox.qml
new file mode 100644
index 00000000..b30d7455
--- /dev/null
+++ b/components/package/contents/ui/Outbox.qml
@@ -0,0 +1,54 @@
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.3
20import QtQuick.Layouts 1.1
21
22import org.kde.kirigami 1.0 as Kirigami
23
24import org.kube.framework.domain 1.0 as KubeFramework
25import org.kube.components 1.0 as KubeComponents
26
27ToolButton {
28 id: root
29
30 iconName: "mail-folder-outbox"
31
32 onClicked: {
33 dialog.visible = dialog.visible ? false : true
34 }
35
36 Rectangle {
37 id: dialog
38
39 anchors {
40 top: parent.bottom
41 horizontalCenter: parent.horizontalCenter
42 }
43
44 height: 600
45 width: 400
46
47 color: Kirigami.Theme.backgroundColor
48 border.width: 1
49 border.color: Kirigami.Theme.highlightColor //TODO change to Kirigami inactive text color once it is available
50 radius: 3
51 clip: true
52 visible: false
53 }
54}