summaryrefslogtreecommitdiff
path: root/src/styles/Desktop/ToolButtonStyle.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/styles/Desktop/ToolButtonStyle.qml')
-rw-r--r--src/styles/Desktop/ToolButtonStyle.qml13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/styles/Desktop/ToolButtonStyle.qml b/src/styles/Desktop/ToolButtonStyle.qml
index b54eeee2..54726962 100644
--- a/src/styles/Desktop/ToolButtonStyle.qml
+++ b/src/styles/Desktop/ToolButtonStyle.qml
@@ -46,16 +46,17 @@ Style {
anchors.fill: parent
elementType: "toolbutton"
- on: control.pressed || (control.checkable && control.checked)
- sunken: control.pressed || (control.checkable && control.checked)
- raised: !(control.checkable && control.checked) && control.__containsMouse
- hover: control.__containsMouse
+ on: control.checkable && control.checked
+ sunken: control.pressed
+ raised: !(control.checkable && control.checked) && control.hovered
+ hover: control.hovered
hasFocus: control.activeFocus
- hints: control.styleHints.concat([control.__position])
+ hints: control.styleHints
text: control.text
properties: {
- "icon": control.__action.__icon
+ "icon": control.__iconAction.__icon,
+ "position": control.__position
}
}
}