@@ -25,6 +25,8 @@ Item {
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 @@ Item {
71 height: units.gu(8)
73 height: units.gu(8)
72− opacity: 0.6
74+ opacity: header.opacity * 0.6
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 {
@@ -98,7 +100,6 @@ Item {
98 lowp vec4 tex = texture2D(source, coord);
100 lowp vec4 tex = texture2D(source, coord);
99 gl_FragColor = vec4(0, 0, 0, tex.a) * qt_Opacity;
101 gl_FragColor = vec4(0, 0, 0, tex.a) * qt_Opacity;
104 CardHeader {
105 CardHeader {
@@ -119,13 +120,15 @@ Item {
119 return parent.left;
120 return parent.left;
121 right: parent.right
122 right: parent.right
122− margins: template && template["overlay"] ? units.gu(1) : 0
126 mascot: cardData && cardData["mascot"] || ""
125 mascot: cardData && cardData["mascot"] || ""
127 title: cardData && cardData["title"] || ""
126 title: cardData && cardData["title"] || ""
128 subtitle: cardData && cardData["subtitle"] || ""
127 subtitle: cardData && cardData["subtitle"] || ""
129+ opacity: showHeader ? 1 : 0
131+ Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }