]> git.tdb.fi Git - xinema.git/blobdiff - remote/qml/pages/ChannelItem.qml
Add channel selection controls in the remote
[xinema.git] / remote / qml / pages / ChannelItem.qml
diff --git a/remote/qml/pages/ChannelItem.qml b/remote/qml/pages/ChannelItem.qml
new file mode 100644 (file)
index 0000000..714e707
--- /dev/null
@@ -0,0 +1,31 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+
+Label
+{
+       id: item
+
+       anchors
+       {
+               left: parent.left
+               right: parent.right
+               margins: Theme.paddingLarge
+       }
+
+       property int channelIndex: 0
+       property string channelName: ""
+       property bool down: false
+
+       signal clicked()
+
+       text: channelIndex+": "+channelName
+       horizontalAlignment: Text.AlignHCenter
+       color: down ? Theme.primaryColor : Theme.highlightColor
+
+       MouseArea
+       {
+               anchors.fill: parent
+
+               onClicked: item.clicked()
+       }
+}