2
* Copyright 2013 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by Andrea Cimitan <andrea.cimitan@canonical.com>
20
import Ubuntu.Components 0.1
21
import Ubuntu.Components.ListItems 0.1 as ListItem
26
property bool running: false
27
property alias playerName: playerNameLabel.text
28
property alias playerIcon: playerIcon.source
30
property alias albumArt: albumArtImage.source
31
property alias song: songLabel.text
32
property alias artist: artistLabel.text
33
property alias album: albumLabel.text
35
implicitHeight: column.height + units.gu(2)
36
Behavior on implicitHeight { UbuntuNumberAnimation {} }
44
topMargin: units.gu(1)
45
leftMargin: menu.__contentsMargins
46
rightMargin: menu.__contentsMargins
48
height: running ? trackRow.height : playerRow.height
53
spacing: menu.__contentsMargins
56
Behavior on opacity { UbuntuNumberAnimation {} }
69
anchors.verticalCenter: parent.verticalCenter
74
objectName: "albumArt"
80
Behavior on opacity { UbuntuNumberAnimation {} }
93
anchors.verticalCenter: parent.verticalCenter