on xenial help sign in
fix the opacity anim
c048683Lukáš Tinkl
qml/Stages/WindowControlsOverlay.qml+3−5
@@ -74,17 +74,15 @@ Item {
74 id: overlay
74 id: overlay
75 objectName: "windowControlsOverlay"
75 objectName: "windowControlsOverlay"
76 anchors.fill: parent
76 anchors.fill: parent
77− //opacity: target.surface == MirFocusController.focusedSurface && overlayTimer.running ? 1 : 0
78− //visible: opacity == 1
79 visible: target.surface == MirFocusController.focusedSurface && overlayTimer.running
77 visible: target.surface == MirFocusController.focusedSurface && overlayTimer.running
80− enabled: visible
78+ opacity: visible ? 1 : 0
81−
82− readonly property bool anyMaximized: target && (target.maximized || target.maximizedLeft || target.maximizedRight)
83
79
84 Behavior on opacity {
80 Behavior on opacity {
85 OpacityAnimator { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
81 OpacityAnimator { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
86 }
82 }
87
83
84+ readonly property bool anyMaximized: target && (target.maximized || target.maximizedLeft || target.maximizedRight)
85+
88 Image {
86 Image {
89 source: "graphics/arrows-centre.png"
87 source: "graphics/arrows-centre.png"
90 width: units.gu(10)
88 width: units.gu(10)