From 6ccc9625badf50d8ee7b65faa72763363af9ab3c Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 8 Jun 2021 13:27:04 +0200 Subject: [PATCH] feat(StatusChatListCategoryItem): introduce `highlighted` property --- .../src/StatusQ/Components/StatusChatListCategoryItem.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusChatListCategoryItem.qml b/ui/StatusQ/src/StatusQ/Components/StatusChatListCategoryItem.qml index 6a0ff4ff2b..e410e7dcf9 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusChatListCategoryItem.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusChatListCategoryItem.qml @@ -15,6 +15,7 @@ StatusListItem { rightPadding: 8 property bool opened: true + property bool highlighted: false property alias addButton: addButton property alias menuButton: menuButton property alias toggleButton: toggleButton @@ -24,7 +25,7 @@ StatusListItem { signal menuButtonClicked(var mouse) signal toggleButtonClicked(var mouse) - color: sensor.containsMouse ? Theme.palette.baseColor2 : "transparent" + color: sensor.containsMouse || highlighted ? Theme.palette.baseColor2 : "transparent" sensor.onClicked: statusChatListCategoryItem.clicked(mouse) @@ -38,7 +39,7 @@ StatusListItem { id: addButton icon.name: "add" icon.width: 20 - visible: statusChatListCategoryItem.sensor.containsMouse + visible: statusChatListCategoryItem.sensor.containsMouse || statusChatListCategoryItem.highlighted onClicked: statusChatListCategoryItem.addButtonClicked(mouse) tooltip.text: "Add channel inside category" }, @@ -46,7 +47,7 @@ StatusListItem { id: menuButton icon.name: "more" icon.width: 21 - visible: statusChatListCategoryItem.sensor.containsMouse + visible: statusChatListCategoryItem.sensor.containsMouse || statusChatListCategoryItem.highlighted onClicked: statusChatListCategoryItem.menuButtonClicked(mouse) tooltip.text: "More" },