2
0
mirror of synced 2025-01-10 22:36:09 +00:00

fix(StatusBaseButton): introduce missing highlighted property

This commit is contained in:
Pascal Precht 2021-10-18 13:33:16 +02:00 committed by r4bbit.eth
parent dab12dc7c8
commit a37489204c

View File

@ -54,6 +54,7 @@ Rectangle {
signal clicked(var mouse) signal clicked(var mouse)
signal pressAndHold(var mouse) signal pressAndHold(var mouse)
property bool highlighted: false
/// Implementation /// Implementation
@ -65,7 +66,7 @@ Rectangle {
color: { color: {
if (statusBaseButton.enabled) { if (statusBaseButton.enabled) {
return sensor.containsMouse ? hoverColor return sensor.containsMouse || highlighted ? hoverColor
: normalColor : normalColor
} else { } else {
return disaledColor return disaledColor