From 70aa6b082625155f2e7f5095b3bb1ab89e8cb2de Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 19 Apr 2017 14:00:35 +0200 Subject: use kube.label in maillistview and center nothing-here message --- framework/qml/MailListView.qml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'framework/qml') diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index fc40074d..39cbd47c 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml @@ -131,8 +131,8 @@ Item { } } - Label { - anchors.top: searchBar.bottom + Kube.Label { + anchors.centerIn: parent visible: listView.count === 0 //TODO depending on whether we synchronized already or not the label should change. text: "Nothing here..." @@ -279,30 +279,29 @@ Item { leftMargin: Kube.Units.largeSpacing } - Text{ + Kube.Label{ id: subject + width: content.width - Kube.Units.gridUnit * 3 + text: model.subject color: model.unread ? Kube.Colors.highlightColor : Kube.Colors.textColor - maximumLineCount: 2 - width: content.width - Kube.Units.gridUnit * 3 wrapMode: Text.WrapAnywhere elide: Text.ElideRight } - Text { + Kube.Label { id: sender text: model.senderName font.italic: true - color: Kube.Colors.textColor width: delegateRoot.width - Kube.Units.gridUnit * 3 elide: Text.ElideRight } } - Text { + Kube.Label { id: date anchors { @@ -315,7 +314,7 @@ Item { font.pointSize: 9 } - Text { + Kube.Label { id: threadCounter anchors { -- cgit v1.2.3