From dd58cb3b6bcf779213604708051919d56ab3a43a Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 1 Oct 2022 07:02:35 -0500 Subject: [PATCH] making servicelist follow the selected and active attribute of items --- src/qml/presenter/ServiceList.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qml/presenter/ServiceList.qml b/src/qml/presenter/ServiceList.qml index c94d9d1..9ab0270 100644 --- a/src/qml/presenter/ServiceList.qml +++ b/src/qml/presenter/ServiceList.qml @@ -152,7 +152,9 @@ ColumnLayout { hoverEnabled: false supportsMouseEvents: false backgroundColor: { - if (serviceItemList.currentIndex === index) + if (active) + Kirigami.Theme.highlightColor; + else if (selected) Kirigami.Theme.highlightColor; else if (mouseHandler.containsMouse) Kirigami.Theme.hoverColor; @@ -160,7 +162,7 @@ ColumnLayout { Kirigami.Theme.backgroundColor; } textColor: { - if (serviceItemList.currentIndex === index || + if (selected || mouseHandler.containsMouse) activeTextColor; else