on xenial help sign in
Use one animation.
644c0adMichał Karnicki
qml/Dash/Card.qml+1−3
@@ -71,7 +71,7 @@ AbstractButton {
71 }
71 }
72
72
73 height: header.height
73 height: header.height
74− opacity: showHeader ? 0.6 : 0
74+ opacity: opacity: header.opacity * 0.6
75 visible: template && template["overlay"] && artShape.visible && artShape.image.status === Image.Ready || false
75 visible: template && template["overlay"] && artShape.visible && artShape.image.status === Image.Ready || false
76
76
77 property var source: ShaderEffectSource {
77 property var source: ShaderEffectSource {
@@ -100,8 +100,6 @@ AbstractButton {
100 lowp vec4 tex = texture2D(source, coord);
100 lowp vec4 tex = texture2D(source, coord);
101 gl_FragColor = vec4(0, 0, 0, tex.a) * qt_Opacity;
101 gl_FragColor = vec4(0, 0, 0, tex.a) * qt_Opacity;
102 }"
102 }"
103−
104− Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
105 }
103 }
106
104
107 CardHeader {
105 CardHeader {