From 312800ccb9a56d94fe19d97842df87c5f6fbc344 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 18 Oct 2021 13:33:16 +0200 Subject: [PATCH] fix(StatusBaseButton): introduce missing `highlighted` property --- ui/StatusQ/src/StatusQ/Controls/StatusBaseButton.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusBaseButton.qml b/ui/StatusQ/src/StatusQ/Controls/StatusBaseButton.qml index 0fc7426cd1..9a0ffeb940 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusBaseButton.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusBaseButton.qml @@ -54,6 +54,7 @@ Rectangle { signal clicked(var mouse) signal pressAndHold(var mouse) + property bool highlighted: false /// Implementation @@ -65,7 +66,7 @@ Rectangle { color: { if (statusBaseButton.enabled) { - return sensor.containsMouse ? hoverColor + return sensor.containsMouse || highlighted ? hoverColor : normalColor } else { return disaledColor