Add a hover and pressed to the visual indication of MyButton.

This commit is contained in:
Adam Treat
2023-05-30 19:58:37 -04:00
parent 122b14d526
commit 3e828e1e4b
2 changed files with 4 additions and 4 deletions

View File

@@ -14,11 +14,10 @@ Button {
Accessible.name: text
}
background: Rectangle {
opacity: .5
border.color: theme.backgroundLightest
border.width: 1
border.color: myButton.down ? theme.backgroundLightest : theme.buttonBorder
border.width: 2
radius: 10
color: theme.backgroundLight
color: myButton.hovered ? theme.backgroundLighter : theme.backgroundLight
}
Accessible.role: Accessible.Button
Accessible.name: text