@@ -25,6 +25,8 @@ Item {
2525
2626 property alias fontScale: header.fontScale
2727
28+ property bool showHeader: true
29+
2830 implicitWidth: childrenRect.width
2931 implicitHeight: summary.y + summary.height
3032
@@ -69,7 +71,7 @@ Item {
6971 }
7072
7173 height: units.gu(8)
72− opacity: 0.6
74+ opacity: header.opacity * 0.6
7375 visible: template && template["overlay"] && artShape.visible && artShape.image.status === Image.Ready || false
7476
7577 property var source: ShaderEffectSource {
@@ -98,7 +100,6 @@ Item {
98100 lowp vec4 tex = texture2D(source, coord);
99101 gl_FragColor = vec4(0, 0, 0, tex.a) * qt_Opacity;
100102 }"
101−
102103 }
103104
104105 CardHeader {
@@ -119,13 +120,15 @@ Item {
119120 return parent.left;
120121 }
121122 right: parent.right
122− margins: template && template["overlay"] ? units.gu(1) : 0
123− topMargin: 0
124123 }
125124
126125 mascot: cardData && cardData["mascot"] || ""
127126 title: cardData && cardData["title"] || ""
128127 subtitle: cardData && cardData["subtitle"] || ""
128+
129+ opacity: showHeader ? 1 : 0
130+
131+ Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
129132 }
130133
131134 Label {