X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fcover%2FLargeItem.qml;fp=qml%2Fcover%2FLargeItem.qml;h=9d8d887cc380b6151a049b51eec85e65bf07f25d;hp=0000000000000000000000000000000000000000;hb=48a4da912f9df07681ba68d33475e1d43cfab571;hpb=70180c4c4fd2807d16f90562d6876f3f07d388b1 diff --git a/qml/cover/LargeItem.qml b/qml/cover/LargeItem.qml new file mode 100644 index 0000000..9d8d887 --- /dev/null +++ b/qml/cover/LargeItem.qml @@ -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 + } +}