@@ -58,12 +58,64 @@ Item {
65+ right: artShape.right
66+ bottom: artShape.bottom
71+ visible: template && template["overlay"] && artShape.visible && artShape.image.status === Image.Ready || false
73+ property var source: ShaderEffectSource {
76+ onVisibleChanged: if (visible) scheduleUpdate()
78+ sourceRect: Qt.rect(0, artShape.height - overlay.height, artShape.width, overlay.height)
82+ uniform highp mat4 qt_Matrix;
83+ attribute highp vec4 qt_Vertex;
84+ attribute highp vec2 qt_MultiTexCoord0;
85+ varying highp vec2 coord;
87+ coord = qt_MultiTexCoord0;
88+ gl_Position = qt_Matrix * qt_Vertex;
92+ varying highp vec2 coord;
93+ uniform sampler2D source;
94+ uniform lowp float qt_Opacity;
96+ lowp vec4 tex = texture2D(source, coord);
97+ gl_FragColor = vec4(0, 0, 0, tex.a) * qt_Opacity;
61 CardHeader {
102 CardHeader {
62 id: header
103 id: header
63 objectName: "cardHeader"
104 objectName: "cardHeader"
64 anchors {
105 anchors {
108+ if (template["overlay"]) return overlay.top;
65− top: template && template["card-layout"] === "horizontal" ? artShape.top : artShape.bottom
109+ if (template["card-layout"] === "horizontal") return artShape.top;
111+ return artShape.bottom;
66− left: template && template["card-layout"] === "horizontal" ? artShape.right : parent.left
115+ if (!template["overlay"] && template["card-layout"] === "horizontal") return artShape.right;
67 right: parent.right
119 right: parent.right
@@ -73,6 +125,7 @@ Item {
76 objectName: "summaryLabel"
129 objectName: "summaryLabel"
77 anchors { top: header.visible ? header.bottom : artShape.bottom; left: parent.left; right: parent.right }
130 anchors { top: header.visible ? header.bottom : artShape.bottom; left: parent.left; right: parent.right }
78 wrapMode: Text.Wrap
131 wrapMode: Text.Wrap