coorect look for flat buttons
This commit is contained in:
parent
74209db8c3
commit
47d1bc946a
@ -49,6 +49,7 @@ T.ToolButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
background: Item {
|
background: Item {
|
||||||
|
visible: (!control.flat || control.hovered) && (!control.pressed || !control.checked)
|
||||||
//retrocompatibility with old controls
|
//retrocompatibility with old controls
|
||||||
implicitWidth: units.gridUnit * 6
|
implicitWidth: units.gridUnit * 6
|
||||||
implicitHeight: units.gridUnit * 1.6
|
implicitHeight: units.gridUnit * 1.6
|
||||||
@ -72,7 +73,7 @@ T.ToolButton {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
imagePath: "widgets/button"
|
imagePath: "widgets/button"
|
||||||
prefix: "normal"
|
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 {
|
Behavior on opacity {
|
||||||
OpacityAnimator {
|
OpacityAnimator {
|
||||||
duration: units.longDuration
|
duration: units.longDuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user