make cursor shape pointing hand on button hover

This commit is contained in:
end-4
2025-04-17 16:39:23 +02:00
parent 873cb24642
commit f798b912a6
9 changed files with 24 additions and 5 deletions
@@ -12,6 +12,8 @@ Button {
implicitHeight: 30
implicitWidth: buttonTextWidget.implicitWidth + 15 * 2
PointingHandInteraction {}
background: Rectangle {
anchors.fill: parent
radius: Appearance.rounding.full
@@ -34,7 +36,7 @@ Button {
anchors.rightMargin: 15
text: buttonText
horizontalAlignment: Text.AlignHCenter
font.pixelSize: Appearance.font.pixelSize.normal
font.pixelSize: Appearance.font.pixelSize.small
color: button.enabled ? Appearance.m3colors.m3primary : Appearance.m3colors.m3outline
Behavior on color {