Add flashy spiral timer to cover
[harbour-pedalo.git] / qml / cover / LargeItem.qml
diff --git a/qml/cover/LargeItem.qml b/qml/cover/LargeItem.qml
new file mode 100644 (file)
index 0000000..9d8d887
--- /dev/null
@@ -0,0 +1,36 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+
+Column {
+    property alias title: titleLabel.text
+    property alias titleVisible: titleLabel.visible
+    property alias text: subLabel.text
+    property alias textVisible: subLabel.visible
+
+    anchors {
+        left: parent ? parent.left : undefined
+        right: parent ? parent.right : undefined
+    }
+
+    Label {
+        id: titleLabel
+
+        width: Math.min(parent.width, implicitWidth)
+        x: (parent.width - width) / 2
+
+        color: Theme.primaryColor
+        font.pixelSize: Theme.fontSizeLarge
+        truncationMode: TruncationMode.Fade
+    }
+
+    Label {
+        id: subLabel
+
+        width: Math.min(parent.width, implicitWidth)
+        x: (parent.width - width) / 2
+
+        color: Theme.highlightColor
+        font.pixelSize: Theme.fontSizeExtraSmall
+        truncationMode: TruncationMode.Fade
+    }
+}