From f68a70d07a6260e31d5b735a0076cf9921a93be5 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 --- ui/StatusQ/src/StatusQ/Components/StatusListItem.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusListItem.qml b/ui/StatusQ/src/StatusQ/Components/StatusListItem.qml index bbcabb1330..f5358ef0a4 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusListItem.qml +++ b/ui/StatusQ/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