3
* Andrew Hayzen <ahayzen@gmail.com>
4
* Victor Thompson <victor.thompson@gmail.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
import Ubuntu.Components 1.1
21
import Ubuntu.Components.ListItems 1.0 as ListItem
27
property alias bottomColumn: bottomColumnLoader.sourceComponent
28
property alias coverSources: coversImage.covers
29
property alias rightColumn: rightColumnLoader.sourceComponent
34
art: coversImage.covers.length > 0
35
? (coversImage.covers[0].art !== undefined
36
? coversImage.covers[0].art
37
: decodeURIComponent("image://albumart/artist=" + coversImage.covers[0].author + "&album=" + coversImage.covers[0].album))
38
: Qt.resolvedUrl("../images/music-app-cover@30.png")
44
bottomMargin: units.gu(2)
46
leftMargin: units.gu(2)
47
rightMargin: units.gu(2)
49
topMargin: units.gu(3)
57
bottom: coversImage.bottom
58
left: coversImage.right
59
leftMargin: units.gu(2)
64
id: bottomColumnLoader
66
left: coversImage.left
68
rightMargin: units.gu(2)
69
top: coversImage.bottom
70
topMargin: units.gu(1)