2
* Copyright 2013 Canonical Ltd.
2
* Copyright 2013-2016 Canonical Ltd.
4
4
* This program is free software; you can redistribute it and/or modify
5
5
* it under the terms of the GNU Lesser General Public License as published by
14
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
* Authored by Andrea Cimitan <andrea.cimitan@canonical.com>
17
* Marco Trevisan <marco.trevisan@canonical.com>
20
21
import Ubuntu.Components 1.3
21
import Ubuntu.Components.ListItems 1.3 as ListItems
26
property alias iconSource: iconVisual.source
27
property alias text: label.text
28
26
property alias time: dateLabel.text
29
property alias eventColor: iconVisual.color
33
source: "image://theme/calendar"
35
color: theme.palette.normal.backgroundText
37
height: Math.min(units.gu(3), parent.height - units.gu(1))
42
leftMargin: menu.__contentsMargins
43
verticalCenter: parent.verticalCenter
50
verticalCenter: parent.verticalCenter
51
left: iconVisual.visible ? iconVisual.right : parent.left
52
leftMargin: menu.__contentsMargins
54
rightMargin: menu.__contentsMargins
56
elide: Text.ElideRight
58
opacity: enabled ? 1.0 : 0.5
27
property alias eventColor: menu.iconColor
29
title.opacity: enabled ? 1 : 0.5
65
verticalCenter: parent.verticalCenter
67
rightMargin: menu.__contentsMargins
69
opacity: enabled ? 1.0 : 0.5