@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -31,7 +31,7 @@ top: parent.top;
3131 wrapMode: Text.Wrap;
3232 maximumLineCount: 2;
3333 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
34− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText;
34+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText;
3535 visible: showHeader ;
3636 width: undefined;
3737 text: root.title;
@@ -52,7 +52,7 @@ top: titleLabel.bottom;
5252 maximumLineCount: 1;
5353 fontSize: "x-small";
5454 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
55− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText;
55+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText;
5656 visible: titleLabel.visible && titleLabel.text;
5757 text: cardData && cardData["subtitle"] || "";
5858 font.weight: Font.Light;
@@ -74,7 +74,7 @@ CardAudioProgress {
7474 width: height;
7575 height: (root.fixedHeaderHeight > 0 ? root.fixedHeaderHeight : headerHeight) + 2 * units.gu(1);
7676 readonly property url source: (cardData["quickPreviewData"] && cardData["quickPreviewData"]["uri"]) || "";
77− UbuntuShape {
77+ UbuntuShape {
7878 anchors.fill: parent;
7979 visible: parent.pressed;
8080 radius: "medium";
@@ -84,17 +84,17 @@ CardAudioProgress {
8484 anchors.fill: parent;
8585 anchors.margins: parent.height > units.gu(5) ? units.gu(2) : units.gu(0);
8686 opacity: 0.9;
87− name: DashAudioPlayer.isCurrentSource(parent.source) && DashAudioPlayer.playing ? "media-playback-pause" : "media-playback-start";
87+ name: DashAudioPlayer.playing && AudioUrlComparer.compare(parent.source, DashAudioPlayer.currentSource) ? "media-playback-pause" : "media-playback-start";
8888 }
8989 onClicked: {
90− if (DashAudioPlayer.isCurrentSource(source)) {
90+ if (AudioUrlComparer.compare(source, DashAudioPlayer.currentSource)) {
9191 if (DashAudioPlayer.playing) {
9292 DashAudioPlayer.pause();
9393 } else {
9494 DashAudioPlayer.play();
9595 }
9696 } else {
97− var playlist = (cardData["quickPreviewData"] && cardData["quickPreviewData"]["playlist"]) || null;
97+ var playlist = (cardData["quickPreviewData"] && cardData["quickPreviewData"]["playlist"]) || null;
9898 DashAudioPlayer.playSource(source, playlist);
9999 }
100100 }
@@ -105,7 +105,7 @@ CardAudioProgress {
105105 id: touchdown;
106106 objectName: "touchdown";
107107 anchors { fill: root }
108− visible: root.pressed;
108+ visible: root.artShapeStyle != "shadow" && root.artShapeStyle != "icon" && root.pressed;
109109 radius: "medium";
110110 borderSource: "radius_pressed.sci"
111111 }