From 5780f183c7b3cf63c3abbc584daa72078241e917 Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Mon, 7 Feb 2022 21:56:57 +0100 Subject: [PATCH] feat(StatusListItem): add highlighted property --- src/StatusQ/Components/StatusListItem.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Components/StatusListItem.qml b/src/StatusQ/Components/StatusListItem.qml index bbcabb13..f5358ef0 100644 --- a/src/StatusQ/Components/StatusListItem.qml +++ b/src/StatusQ/Components/StatusListItem.qml @@ -21,6 +21,7 @@ Rectangle { property real leftPadding: 16 property real rightPadding: 16 property bool enabled: true + property bool highlighted: false property int type: StatusListItem.Type.Primary property list components @@ -100,7 +101,7 @@ Rectangle { implicitWidth: 448 implicitHeight: Math.max(64, statusListItemTitleArea.height + 16) color: { - if (sensor.containsMouse) { + if (sensor.containsMouse || statusListItem.highlighted) { switch(type) { case StatusListItem.Type.Primary: return Theme.palette.baseColor2