From af2ccb54da5ae864d906f56102d14c664ddcaa56 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 26 Jul 2018 12:30:02 +0200 Subject: visualize important mails --- framework/qml/MailListView.qml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'framework/qml/MailListView.qml') diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 998d9729..ee4f4957 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml @@ -208,25 +208,38 @@ FocusScope { Kube.Label { id: threadCounter - anchors.right: parent.right + anchors { + right: parent.right + margins: Kube.Units.smallSpacing + } text: model.threadSize color: content.unreadColor - visible: model.threadSize > 1 + visible: model.threadSize > 1 && !delegateRoot.focused + } } - Row { + Kube.Icon { + anchors { + right: parent.right + verticalCenter: parent.verticalCenter + margins: Kube.Units.smallSpacing + } + + visible: model.important && !delegateRoot.focused && !mouseArea.drag.active + iconName: Kube.Icons.isImportant + } + + Column { id: buttons anchors { right: parent.right - bottom: parent.bottom margins: Kube.Units.smallSpacing + verticalCenter: parent.verticalCenter } visible: delegateRoot.focused && !mouseArea.drag.active - - spacing: Kube.Units.smallSpacing opacity: 0.7 Kube.IconButton { -- cgit v1.2.3