Added hovered property

This commit is contained in:
Digital Artifex
2026-06-25 03:11:39 -04:00
parent ad4119ec6c
commit 541b57e5a7
+1 -6
View File
@@ -12,6 +12,7 @@ Item {
property color color: palette.button
property Gradient gradient: defaultGradient
property BorderSettings border: BorderSettings {}
readonly property bool hovered: state === "hovered"
signal triggered
@@ -106,10 +107,6 @@ Item {
Behavior on color {
ColorAnimation { duration: 250 }
}
// Behavior on gradient {
// PropertyAnimation { duration: 250 }
// }
}
MouseArea {
@@ -216,7 +213,5 @@ Item {
color: palette.text.darker()
}
}
]
}