Added a new InfoBar component
authorLuciano Montanaro <mikelima@cirulla.net>
Tue, 25 Oct 2011 22:59:42 +0000 (00:59 +0200)
committerLuciano Montanaro <mikelima@cirulla.net>
Tue, 27 Dec 2011 22:19:10 +0000 (23:19 +0100)
It is used in the station view to show the current station

application/resources/harmattan/qml/InfoBar.qml [new file with mode: 0644]

diff --git a/application/resources/harmattan/qml/InfoBar.qml b/application/resources/harmattan/qml/InfoBar.qml
new file mode 100644 (file)
index 0000000..3df405e
--- /dev/null
@@ -0,0 +1,45 @@
+import QtQuick 1.0
+import com.nokia.meego 1.0
+import "uiconstants.js" as UiConstants
+
+BorderImage {
+    property alias text: label.text
+    width: parent.width
+    border.left: 10
+    border.right: 10
+    border.top: 10
+    border.bottom: 10
+    height: UiConstants.SearchBarDefaultHeight
+    source: style.background
+
+    ToolBarStyle {
+        id: style
+    }
+    Item {
+        id: spacerTop
+        width: parent.width
+        height: UiConstants.DefaultMargins
+    }
+    Item {
+        id: spacerLeft
+        anchors.left: parent.left
+        width: UiConstants.DefaultMargins
+        height: searchField.height
+    }
+    Item {
+        id: spacerRight
+        anchors.right: parent.right
+        width: UiConstants.DefaultMargins
+        height: searchField.height
+    }
+    Label {
+        id: label
+        anchors.verticalCenter: parent.verticalCenter
+        anchors.left: spacerLeft.right
+        anchors.right: spacerRight.left
+        text: "Lorem Ipsum"
+        font {
+            pixelSize: UiConstants.HeaderFontPixelSize
+        }
+    }
+}