summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/MailListView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/package/contents/ui/MailListView.qml')
-rw-r--r--components/package/contents/ui/MailListView.qml22
1 files changed, 10 insertions, 12 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml
index e7db006b..2d5d6601 100644
--- a/components/package/contents/ui/MailListView.qml
+++ b/components/package/contents/ui/MailListView.qml
@@ -21,9 +21,7 @@ import QtQuick.Controls 2.0
21import QtQuick.Controls 1.4 as Controls 21import QtQuick.Controls 1.4 as Controls
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23 23
24import org.kde.kirigami 1.0 as Kirigami
25import org.kube.components.theme 1.0 as KubeTheme 24import org.kube.components.theme 1.0 as KubeTheme
26
27import org.kube.framework.domain 1.0 as KubeFramework 25import org.kube.framework.domain 1.0 as KubeFramework
28 26
29Item { 27Item {
@@ -46,10 +44,10 @@ Item {
46 Row { 44 Row {
47 anchors.centerIn: parent 45 anchors.centerIn: parent
48 46
49 spacing: Kirigami.Units.smallSpacing 47 spacing: KubeTheme.Units.smallSpacing
50 48
51 Controls.ToolButton { 49 Controls.ToolButton {
52 iconName: "mail-mark-unread-new" 50 iconName: KubeTheme.Icons.markAsRead
53 text: qsTr("Mark As Read") 51 text: qsTr("Mark As Read")
54 enabled: mailController.markAsReadAction.enabled 52 enabled: mailController.markAsReadAction.enabled
55 tooltip: qsTr("mark mail as read") 53 tooltip: qsTr("mark mail as read")
@@ -59,7 +57,7 @@ Item {
59 } 57 }
60 58
61 Controls.ToolButton { 59 Controls.ToolButton {
62 iconName: "mail-mark-important" 60 iconName: KubeTheme.Icons.markImportant
63 text: qsTr("Mark Important") 61 text: qsTr("Mark Important")
64 enabled: mailController.markAsImportantAction.enabled 62 enabled: mailController.markAsImportantAction.enabled
65 tooltip: qsTr("mark mail as important") 63 tooltip: qsTr("mark mail as important")
@@ -69,7 +67,7 @@ Item {
69 } 67 }
70 68
71 Controls.ToolButton { 69 Controls.ToolButton {
72 iconName: "edit-delete" 70 iconName: KubeTheme.Icons.moveToTrash
73 text: qsTr("Delete Mail") 71 text: qsTr("Delete Mail")
74 enabled: mailController.moveToTrashAction.enabled 72 enabled: mailController.moveToTrashAction.enabled
75 tooltip: qsTr("delete email") 73 tooltip: qsTr("delete email")
@@ -79,7 +77,7 @@ Item {
79 } 77 }
80 78
81 Controls.ToolButton { 79 Controls.ToolButton {
82 iconName: "edit-undo" 80 iconName: KubeTheme.Icons.undo
83 text: qsTr("Restore Mail") 81 text: qsTr("Restore Mail")
84 enabled: mailController.restoreFromTrashAction.enabled 82 enabled: mailController.restoreFromTrashAction.enabled
85 tooltip: qsTr("restore email") 83 tooltip: qsTr("restore email")
@@ -153,7 +151,7 @@ Item {
153 property variant mail : model.domainObject 151 property variant mail : model.domainObject
154 152
155 width: scrollbar.visible ? listView.width - scrollbar.width : listView.width 153 width: scrollbar.visible ? listView.width - scrollbar.width : listView.width
156 height: Kirigami.Units.gridUnit * 5 154 height: KubeTheme.Units.gridUnit * 5
157 155
158 states: [ 156 states: [
159 State { 157 State {
@@ -231,14 +229,14 @@ Item {
231 bottom: parent.bottom 229 bottom: parent.bottom
232 left: parent.left 230 left: parent.left
233 right: parent.right 231 right: parent.right
234 margins: Kirigami.Units.smallSpacing 232 margins: KubeTheme.Units.smallSpacing
235 } 233 }
236 234
237 Column { 235 Column {
238 anchors { 236 anchors {
239 verticalCenter: parent.verticalCenter 237 verticalCenter: parent.verticalCenter
240 left: parent.left 238 left: parent.left
241 leftMargin: Kirigami.Units.largeSpacing 239 leftMargin: KubeTheme.Units.largeSpacing
242 } 240 }
243 241
244 Text{ 242 Text{
@@ -248,7 +246,7 @@ Item {
248 color: model.unread ? KubeTheme.Colors.highlightColor : KubeTheme.Colors.textColor 246 color: model.unread ? KubeTheme.Colors.highlightColor : KubeTheme.Colors.textColor
249 247
250 maximumLineCount: 2 248 maximumLineCount: 2
251 width: content.width - Kirigami.Units.gridUnit * 3 249 width: content.width - KubeTheme.Units.gridUnit * 3
252 wrapMode: Text.WrapAnywhere 250 wrapMode: Text.WrapAnywhere
253 elide: Text.ElideRight 251 elide: Text.ElideRight
254 } 252 }
@@ -259,7 +257,7 @@ Item {
259 text: model.senderName 257 text: model.senderName
260 font.italic: true 258 font.italic: true
261 color: KubeTheme.Colors.textColor 259 color: KubeTheme.Colors.textColor
262 width: delegateRoot.width - Kirigami.Units.gridUnit * 3 260 width: delegateRoot.width - KubeTheme.Units.gridUnit * 3
263 elide: Text.ElideRight 261 elide: Text.ElideRight
264 } 262 }
265 } 263 }