on xenial help sign in
use a button and make contents transparent
commitede29e3e7cc636da2453990eb496009bf32a624f authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 15 Nov 2013, 17:28 (13 years ago) parentdd6b063
1 file changed+3−14
Dash/Music/MusicPreview.qml+3−14
Dash/Music/MusicPreview.qml+3−14
@@ -118,23 +118,12 @@ GenericPreview {
118118 property int column3Width: units.gu(4)
119119 anchors.verticalCenter: parent.verticalCenter
120120
121− AbstractButton {
121+ Button {
122122 objectName: "playButton"
123123 width: trackRow.column1Width
124124 height: width
125−
126− UbuntuShape {
127− id: playButtonShape
128− anchors.fill: parent
129− Icon {
130− width: units.gu(2)
131− height: width
132− anchors.centerIn: playButtonShape
133− name: audioPlayer.playbackState == Audio.PlayingState && trackItem.isPlayingItem ? "media-playback-pause" : "media-playback-start"
134− color: "white"
135− opacity: .9
136− }
137− }
125+ iconSource: audioPlayer.playbackState == Audio.PlayingState && trackItem.isPlayingItem ? "image://theme/media-playback-pause" : "image://theme/media-playback-start"
126+ color: "#01000000" // Can't be "transparent" or "#00xxxxxx" as the button optimizes away the surrounding shape
138127
139128 onClicked: {
140129 if (trackItem.isPlayingItem) {