fix(StatusBaseButton): introduce missing `highlighted` property

This commit is contained in:
Pascal Precht 2021-10-18 13:33:16 +02:00 committed by Michał Cieślak
parent 10a7718011
commit 312800ccb9
1 changed files with 2 additions and 1 deletions

View File

@ -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