diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-06-22 10:46:38 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-06-22 10:46:38 +0200 |
commit | 6f4aff0a9b20b7564b43445d2c9a4d9f2561da4c (patch) | |
tree | d739ee5a616213e43330f0bafab0dde2fbf178c0 | |
parent | 76c5125052cb7deb116fbdf453e5512b6d79ca4b (diff) | |
download | kube-6f4aff0a9b20b7564b43445d2c9a4d9f2561da4c.tar.gz kube-6f4aff0a9b20b7564b43445d2c9a4d9f2561da4c.zip |
initial outbox component
-rw-r--r-- | components/mail/contents/ui/main.qml | 9 | ||||
-rw-r--r-- | components/package/contents/ui/Outbox.qml | 54 | ||||
-rw-r--r-- | components/qmldir | 1 |
3 files changed, 61 insertions, 3 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index fdae00dc..22ff50a0 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml | |||
@@ -225,16 +225,19 @@ ApplicationWindow { | |||
225 | } | 225 | } |
226 | } | 226 | } |
227 | 227 | ||
228 | ToolButton { | 228 | Button { |
229 | id: newMailButton | 229 | id: newMailButton |
230 | 230 | ||
231 | iconName: "mail-message-new" | 231 | //iconName: "mail-message-new" |
232 | text: "Compose" | 232 | text: "New Email" |
233 | tooltip: "compose new email" | 233 | tooltip: "compose new email" |
234 | onClicked: { | 234 | onClicked: { |
235 | composerComponent.createObject(app) | 235 | composerComponent.createObject(app) |
236 | } | 236 | } |
237 | } | 237 | } |
238 | |||
239 | KubeComponents.Outbox { | ||
240 | } | ||
238 | /* | 241 | /* |
239 | ToolButton { | 242 | ToolButton { |
240 | iconName: "mail-message-reply" | 243 | iconName: "mail-message-reply" |
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 | |||
18 | import QtQuick 2.4 | ||
19 | import QtQuick.Controls 1.3 | ||
20 | import QtQuick.Layouts 1.1 | ||
21 | |||
22 | import org.kde.kirigami 1.0 as Kirigami | ||
23 | |||
24 | import org.kube.framework.domain 1.0 as KubeFramework | ||
25 | import org.kube.components 1.0 as KubeComponents | ||
26 | |||
27 | ToolButton { | ||
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 | } | ||
diff --git a/components/qmldir b/components/qmldir index 984c325c..5cc6f80e 100644 --- a/components/qmldir +++ b/components/qmldir | |||
@@ -8,3 +8,4 @@ AccountSwitcher 1.0 AccountSwitcher.qml | |||
8 | NewAccountDialog 1.0 NewAccountDialog.qml | 8 | NewAccountDialog 1.0 NewAccountDialog.qml |
9 | EditAccountDialog 1.0 EditAccountDialog.qml | 9 | EditAccountDialog 1.0 EditAccountDialog.qml |
10 | OverlayDialog 1.0 OverlayDialog.qml | 10 | OverlayDialog 1.0 OverlayDialog.qml |
11 | Outbox 1.0 Outbox.qml | ||