diff --git a/styled/Clickable.qml b/styled/Clickable.qml index 8f642f6..f2f2c2e 100644 --- a/styled/Clickable.qml +++ b/styled/Clickable.qml @@ -9,22 +9,13 @@ MouseArea { hoverEnabled: !disabled cursorShape: Qt.PointingHandCursor - StyledLabel { + Rectangle { id: background anchors.fill: parent - states: State { - name: "hovered" - when: mouseArea.containsMouse - PropertyChanges { - background { - color: Theme.palette.primary - } - } - } - transitions: Transition { - from: "" - to: "hovered" - reversible: true + + radius: Dimensions.radius + color: mouseArea.containsMouse ? Theme.palette.primary : Theme.palette.base300 + Behavior on color { ColorAnimation { properties: "color" duration: 200