From 88616288d8541397776b54c5546d61af835483af Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 30 Jun 2018 11:20:38 +0200 Subject: Fixed the problem where the text could take the background color The issue was that isActive != selected. The folder remains active even if we select a mail, but it doesn't remain selected. --- framework/qml/FolderListView.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/qml/FolderListView.qml b/framework/qml/FolderListView.qml index bf1f52e5..fe91aacc 100644 --- a/framework/qml/FolderListView.qml +++ b/framework/qml/FolderListView.qml @@ -41,6 +41,8 @@ Kube.TreeView { title: "Name" role: "name" delegate: Item { + id: delegateRoot + property bool isActive: root.activeIndex === root.indexFromRow(styleData.row) DropArea { anchors.fill: parent Rectangle { @@ -64,7 +66,7 @@ Kube.TreeView { } text: styleData.value elide: Qt.ElideRight - color: (model.hasNewData && !styleData.selected) ? Kube.Colors.highlightColor : Kube.Colors.viewBackgroundColor + color: (model.hasNewData && !delegateRoot.isActive) ? Kube.Colors.highlightColor : Kube.Colors.viewBackgroundColor } } } -- cgit v1.2.3