@@ -25,6 +25,8 @@ AbstractButton {
26 property alias fontScale: header.fontScale
26 property alias fontScale: header.fontScale
28+ property bool showHeader: true
28 implicitWidth: childrenRect.width
30 implicitWidth: childrenRect.width
29 implicitHeight: summary.y + summary.height
31 implicitHeight: summary.y + summary.height
@@ -69,7 +71,7 @@ AbstractButton {
71 height: header.height
73 height: header.height
72− opacity: 0.6
74+ opacity: showHeader ? 0.6 : 0
73 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
75 property var source: ShaderEffectSource {
77 property var source: ShaderEffectSource {
@@ -99,6 +101,7 @@ AbstractButton {
99 gl_FragColor = vec4(0, 0, 0, tex.a) * qt_Opacity;
101 gl_FragColor = vec4(0, 0, 0, tex.a) * qt_Opacity;
104+ Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
104 CardHeader {
107 CardHeader {
@@ -126,6 +129,10 @@ AbstractButton {
126 mascot: cardData && cardData["mascot"] || ""
129 mascot: cardData && cardData["mascot"] || ""
127 title: cardData && cardData["title"] || ""
130 title: cardData && cardData["title"] || ""
128 subtitle: cardData && cardData["subtitle"] || ""
131 subtitle: cardData && cardData["subtitle"] || ""
133+ opacity: showHeader ? 1 : 0
135+ Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }