Added hovered property
This commit is contained in:
@@ -12,6 +12,7 @@ Item {
|
|||||||
property color color: palette.button
|
property color color: palette.button
|
||||||
property Gradient gradient: defaultGradient
|
property Gradient gradient: defaultGradient
|
||||||
property BorderSettings border: BorderSettings {}
|
property BorderSettings border: BorderSettings {}
|
||||||
|
readonly property bool hovered: state === "hovered"
|
||||||
|
|
||||||
signal triggered
|
signal triggered
|
||||||
|
|
||||||
@@ -106,10 +107,6 @@ Item {
|
|||||||
Behavior on color {
|
Behavior on color {
|
||||||
ColorAnimation { duration: 250 }
|
ColorAnimation { duration: 250 }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Behavior on gradient {
|
|
||||||
// PropertyAnimation { duration: 250 }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
@@ -216,7 +213,5 @@ Item {
|
|||||||
color: palette.text.darker()
|
color: palette.text.darker()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user