coorect look for flat buttons

This commit is contained in:
Marco Martin 2018-04-22 22:01:56 +02:00
parent 74209db8c3
commit 47d1bc946a

View File

@ -49,6 +49,7 @@ T.ToolButton {
}
background: Item {
visible: (!control.flat || control.hovered) && (!control.pressed || !control.checked)
//retrocompatibility with old controls
implicitWidth: units.gridUnit * 6
implicitHeight: units.gridUnit * 1.6
@ -72,7 +73,7 @@ T.ToolButton {
anchors.fill: parent
imagePath: "widgets/button"
prefix: "normal"
opacity: (!control.flat || control.hovered) && (!control.pressed || !control.checked) ? 1 : 0
opacity: !control.flat && (!control.pressed || !control.checked) ? 1 : 0
Behavior on opacity {
OpacityAnimator {
duration: units.longDuration