forked from ToonSoftwareCollective/postnl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPostnlTile.qml
63 lines (57 loc) · 1.61 KB
/
PostnlTile.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import QtQuick 2.1
//import qb.base 1.0
import qb.components 1.0
Tile {
id: postnlTile
onClicked: {
stage.openFullscreen(app.postnlScreenUrl);
}
Text {
id: txtBarcode
text: app.tileBarcode
color: (typeof dimmableColors !== 'undefined') ? dimmableColors.clockTileColor : colors.clockTileColor
anchors {
baseline: parent.top
baselineOffset: isNxt ? 50 : 40
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt ? 20 : 16
font.family: qfont.regular.name
}
Text {
id: txtSender
text: (app.tileSender.length > 2) ? "Van: " + app.tileSender : "via PostNL"
color: (typeof dimmableColors !== 'undefined') ? dimmableColors.clockTileColor : colors.clockTileColor
anchors {
top: txtBarcode.bottom
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt ? 20 : 16
font.family: qfont.bold.name
}
Text {
id: txtDate
text: (app.tileDate.length > 5) ? "Verwacht op " + app.tileDate : app.tileDate
color: (typeof dimmableColors !== 'undefined') ? dimmableColors.clockTileColor : colors.clockTileColor
anchors {
baseline: parent.top
baselineOffset: isNxt ? 120 : 95
horizontalCenter: parent.horizontalCenter
}
horizontalAlignment: Text.AlignHCenter
font.pixelSize: isNxt ? 20 : 16
font.family: qfont.regular.name
}
Text {
id: txtTime
text: app.tileTime
color: (typeof dimmableColors !== 'undefined') ? dimmableColors.clockTileColor : colors.clockTileColor
anchors {
top: txtDate.bottom
horizontalCenter: parent.horizontalCenter
}
horizontalAlignment: Text.AlignHCenter
font.pixelSize: isNxt ? 20 : 16
font.family: qfont.regular.name
}
}