diff options
-rw-r--r-- | framework/qml/ListDelegate.qml | 5 | ||||
-rw-r--r-- | framework/qml/MailListView.qml | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/framework/qml/ListDelegate.qml b/framework/qml/ListDelegate.qml index e3a8dafd..3db56ff3 100644 --- a/framework/qml/ListDelegate.qml +++ b/framework/qml/ListDelegate.qml | |||
@@ -26,11 +26,12 @@ T.ItemDelegate { | |||
26 | property variant currentData: model | 26 | property variant currentData: model |
27 | property alias color: background.color | 27 | property alias color: background.color |
28 | property alias border: background.border | 28 | property alias border: background.border |
29 | property color textColor: ListView.isCurrentItem ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor | 29 | property color textColor: highlighted ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor |
30 | 30 | ||
31 | height: Kube.Units.gridUnit * 3 | 31 | height: Kube.Units.gridUnit * 3 |
32 | width: root.ListView.view.width | 32 | width: root.ListView.view.width |
33 | hoverEnabled: true | 33 | hoverEnabled: true |
34 | highlighted: ListView.isCurrentItem | ||
34 | 35 | ||
35 | background: Rectangle { | 36 | background: Rectangle { |
36 | id: background | 37 | id: background |
@@ -39,7 +40,7 @@ T.ItemDelegate { | |||
39 | color: Kube.Colors.viewBackgroundColor | 40 | color: Kube.Colors.viewBackgroundColor |
40 | Rectangle { | 41 | Rectangle { |
41 | anchors.fill: parent | 42 | anchors.fill: parent |
42 | visible: root.ListView.isCurrentItem | 43 | visible: root.highlighted |
43 | color: Kube.Colors.highlightColor | 44 | color: Kube.Colors.highlightColor |
44 | } | 45 | } |
45 | Rectangle { | 46 | Rectangle { |
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index efc86a77..550880ed 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -147,7 +147,7 @@ FocusScope { | |||
147 | fill: parent | 147 | fill: parent |
148 | margins: Kube.Units.smallSpacing | 148 | margins: Kube.Units.smallSpacing |
149 | } | 149 | } |
150 | property color unreadColor: (model.unread && !delegateRoot.ListView.isCurrentItem) ? Kube.Colors.highlightColor : delegateRoot.textColor | 150 | property color unreadColor: (model.unread && !delegateRoot.highlighted) ? Kube.Colors.highlightColor : delegateRoot.textColor |
151 | 151 | ||
152 | Column { | 152 | Column { |
153 | anchors { | 153 | anchors { |