-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBaseTodayTile.qml
47 lines (40 loc) · 930 Bytes
/
BaseTodayTile.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
import QtQuick 2.1
import qb.components 1.0
import BasicUIControls 1.0
Tile {
id: todayTile
property double dayLowUsage: 0
property double dayUsage: 0
property double avgDayValue: 0
property double fixedDayCost: 0
property bool isPowerTile: false
property bool displayInEuro: false
property alias titleText: titleText.text
property alias valueText: valueText.text
Text {
id: titleText
anchors {
baseline: parent.top
baselineOffset: Math.round(30 * verticalScaling)
horizontalCenter: parent.horizontalCenter
}
font {
family: qfont.regular.name
pixelSize: qfont.tileTitle
}
color: dimmableColors.tileTitleColor
}
Text {
id: valueText
anchors {
baseline: parent.bottom
baselineOffset: designElements.vMarginNeg16
horizontalCenter: parent.horizontalCenter
}
font {
family: qfont.regular.name
pixelSize: qfont.tileText
}
color: dimmableColors.tileTextColor
}
}