@@ -0,0 +1,103 @@
2+ * Copyright (C) 2013 Canonical, Ltd.
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation; version 3.
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
18+import Ubuntu.Components 0.1
23+ property alias artist: artistLabel.text
31+ horizontalCenter: parent.horizontalCenter
34+ width: styledItem.imageWidth
35+ height: styledItem.imageHeight
39+ sourceSize { width: icon.width; height: icon.height }
42+ source: styledItem.source
43+ fillMode: styledItem.fillMode
44+ horizontalAlignment: Image.AlignHCenter
45+ verticalAlignment: Image.AlignVCenter
51+ objectName: "borderPressed"
55+ borderSource: "radius_pressed.sci"
56+ opacity: styledItem.pressed ? 1.0 : 0.0
57+ Behavior on opacity { NumberAnimation { duration: 200; easing.type: Easing.OutQuint } }
64+ baseline: icon.bottom
65+ baselineOffset: units.gu(2)
68+ leftMargin: units.gu(1)
69+ rightMargin: units.gu(1)
72+ color: Theme.palette.selected.backgroundText
77+ font.weight: Font.Bold
78+ elide: Text.ElideRight
79+ horizontalAlignment: styledItem.horizontalAlignment
80+ text: styledItem.text
81+ wrapMode: Text.WordWrap
82+ maximumLineCount: styledItem.maximumLineCount
91+ leftMargin: units.gu(1)
92+ rightMargin: units.gu(1)
95+ color: Theme.palette.selected.backgroundText
100+ elide: Text.ElideMiddle
101+ horizontalAlignment: styledItem.horizontalAlignment