]> git.tdb.fi Git - xinema.git/blob - remote/qml/components/ChannelItem.qml
Use the correct value for margin
[xinema.git] / remote / qml / components / ChannelItem.qml
1 import QtQuick 2.0
2 import Sailfish.Silica 1.0
3
4 Label
5 {
6         id: item
7
8         anchors
9         {
10                 left: parent.left
11                 right: parent.right
12                 margins: Theme.horizontalPageMargin
13         }
14
15         property int channelIndex: 0
16         property string channelName: ""
17         property bool down: false
18
19         signal clicked()
20
21         text: channelIndex+": "+channelName
22         horizontalAlignment: Text.AlignHCenter
23         color: down ? Theme.primaryColor : Theme.highlightColor
24
25         MouseArea
26         {
27                 anchors.fill: parent
28
29                 onClicked: item.clicked()
30         }
31 }