Add flashy spiral timer to cover
[harbour-pedalo.git] / qml / cover / LargeItem.qml
1 import QtQuick 2.0
2 import Sailfish.Silica 1.0
3
4 Column {
5     property alias title: titleLabel.text
6     property alias titleVisible: titleLabel.visible
7     property alias text: subLabel.text
8     property alias textVisible: subLabel.visible
9
10     anchors {
11         left: parent ? parent.left : undefined
12         right: parent ? parent.right : undefined
13     }
14
15     Label {
16         id: titleLabel
17
18         width: Math.min(parent.width, implicitWidth)
19         x: (parent.width - width) / 2
20
21         color: Theme.primaryColor
22         font.pixelSize: Theme.fontSizeLarge
23         truncationMode: TruncationMode.Fade
24     }
25
26     Label {
27         id: subLabel
28
29         width: Math.min(parent.width, implicitWidth)
30         x: (parent.width - width) / 2
31
32         color: Theme.highlightColor
33         font.pixelSize: Theme.fontSizeExtraSmall
34         truncationMode: TruncationMode.Fade
35     }
36 }