summaryrefslogtreecommitdiffstats
path: root/framework/qml/Outbox.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 13:00:21 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 13:00:21 +0200
commit5755ad47145d2985ba74354961b4127d82c516f6 (patch)
treeaa6af562b7e587be895ff5a4355270f82f3ea180 /framework/qml/Outbox.qml
parente78224a7d9ccf70aadde8c0bff1cab72e8cb7438 (diff)
downloadkube-5755ad47145d2985ba74354961b4127d82c516f6.tar.gz
kube-5755ad47145d2985ba74354961b4127d82c516f6.zip
A single framework plugin
Diffstat (limited to 'framework/qml/Outbox.qml')
-rw-r--r--framework/qml/Outbox.qml33
1 files changed, 15 insertions, 18 deletions
diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml
index 19646459..6b0a1650 100644
--- a/framework/qml/Outbox.qml
+++ b/framework/qml/Outbox.qml
@@ -22,27 +22,24 @@ import QtQuick.Controls 2.0
22import QtQuick.Controls 1.3 as Controls 22import QtQuick.Controls 1.3 as Controls
23 23
24import org.kde.kirigami 1.0 as Kirigami 24import org.kde.kirigami 1.0 as Kirigami
25import org.kube.framework 1.0 as Kube
25 26
26import org.kube.framework.actions 1.0 as KubeAction
27import org.kube.framework.domain 1.0 as KubeFramework
28import org.kube.components 1.0 as KubeComponents
29import org.kube.components.theme 1.0 as KubeTheme
30 27
31KubeComponents.Button { 28Kube.Button {
32 id: root 29 id: root
33 30
34 text: outboxModel.count > 0 ? "Outbox (" + outboxModel.count + ")" : "Outbox" 31 text: outboxModel.count > 0 ? "Outbox (" + outboxModel.count + ")" : "Outbox"
35 color: "transparent" 32 color: "transparent"
36 textColor: KubeTheme.Colors.highlightedTextColor 33 textColor: Kube.Colors.highlightedTextColor
37 iconName: "" 34 iconName: ""
38 states: [ 35 states: [
39 State { 36 State {
40 name: "busy"; when: outboxModel.status == KubeFramework.OutboxModel.InProgressStatus 37 name: "busy"; when: outboxModel.status == Kube.OutboxModel.InProgressStatus
41 PropertyChanges { target: root; iconName: KubeTheme.Icons.busy } 38 PropertyChanges { target: root; iconName: Kube.Icons.busy }
42 }, 39 },
43 State { 40 State {
44 name: "error"; when: outboxModel.status == KubeFramework.OutboxModel.ErrorStatus 41 name: "error"; when: outboxModel.status == Kube.OutboxModel.ErrorStatus
45 PropertyChanges { target: root; iconName: KubeTheme.Icons.error } 42 PropertyChanges { target: root; iconName: Kube.Icons.error }
46 } 43 }
47 ] 44 ]
48 45
@@ -50,11 +47,11 @@ KubeComponents.Button {
50 dialog.visible = dialog.visible ? false : true 47 dialog.visible = dialog.visible ? false : true
51 } 48 }
52 49
53 KubeFramework.OutboxController { 50 Kube.OutboxController {
54 id: outboxController 51 id: outboxController
55 } 52 }
56 53
57 KubeFramework.OutboxModel { 54 Kube.OutboxModel {
58 id: outboxModel 55 id: outboxModel
59 } 56 }
60 57
@@ -91,8 +88,8 @@ KubeComponents.Button {
91 height: Kirigami.Units.gridUnit * 3 88 height: Kirigami.Units.gridUnit * 3
92 width: listView.width 89 width: listView.width
93 90
94 color: KubeTheme.Colors.viewBackgroundColor 91 color: Kube.Colors.viewBackgroundColor
95 border.color: KubeTheme.Colors.backgroundColor 92 border.color: Kube.Colors.backgroundColor
96 border.width: 1 93 border.width: 1
97 94
98 Label { 95 Label {
@@ -104,16 +101,16 @@ KubeComponents.Button {
104 } 101 }
105 text: model.subject 102 text: model.subject
106 103
107 color: KubeTheme.Colors.textColor 104 color: Kube.Colors.textColor
108 opacity: 1 105 opacity: 1
109 states: [ 106 states: [
110 State { 107 State {
111 name: "inprogress"; when: model.status == KubeFramework.OutboxModel.InProgressStatus 108 name: "inprogress"; when: model.status == Kube.OutboxModel.InProgressStatus
112 PropertyChanges { target: subjectLabel; text: "Sending: " + model.subject } 109 PropertyChanges { target: subjectLabel; text: "Sending: " + model.subject }
113 }, 110 },
114 State { 111 State {
115 name: "error"; when: model.status == KubeFramework.OutboxModel.ErrorStatus 112 name: "error"; when: model.status == Kube.OutboxModel.ErrorStatus
116 PropertyChanges { target: subjectLabel; color: KubeTheme.Colors.warningColor } 113 PropertyChanges { target: subjectLabel; color: Kube.Colors.warningColor }
117 } 114 }
118 ] 115 ]
119 } 116 }