Repository navigation
Expand file tree
/
Copy pathSolarPanelTile2.qml
More file actions
112 lines (94 loc) · 2.39 KB
/
Copy pathSolarPanelTile2.qml
File metadata and controls
112 lines (94 loc) · 2.39 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import QtQuick 2.1
import qb.components 1.0
import BasicUIControls 1.0;
Tile {
id: root
property bool dimState: screenStateController.dimmedColors
MouseArea {
height : parent.height/2
width : parent.width/2
anchors {
top: parent.top
left: parent.left
leftMargin: parent.width/4
topMargin:parent.height/4
}
onClicked: {
stage.openFullscreen(app.solarPanelScreenUrl)
}
}
Text {
id: tileTitle
anchors {
baseline: parent.top
baselineOffset: 30
horizontalCenter: parent.horizontalCenter
}
font {
family: qfont.regular.name
pixelSize: qfont.tileTitle
}
color: !dimState? "black" : "white"
text: (app.pluginWarning.length <1)? (app.inverterCount<2)? "SolarPanel: " + app.selectedInverter: "Totaal Solar" : app.pluginWarning
}
Text {
id: curPower
text: (app.pluginWarning.length <1)? "Zon Nu: " + app.currentPower + " W" : ""
color: !dimState? "black" : "white"
anchors {
top: tileTitle.bottom
topMargin: isNxt? 4:3
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt? 22:18
font.family: qfont.bold.name
}
Text {
id: dayPower
text: (app.pluginWarning.length <1)? "Vandaag: " + parseFloat(app.todayValue/1000).toFixed(1) + " kWh" : ""
color: !dimState? "black" : "white"
anchors {
top: curPower.bottom
topMargin: 1
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt? 22:18
font.family: qfont.bold.name
}
Text {
id: totPower
text: (app.pluginWarning.length <1)? "Totaal: " + parseInt(app.totalValue/1000) + " kWh" : ""
color: !dimState? "black" : "white"
anchors {
top: dayPower.bottom
topMargin: 1
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt? 22:18
font.family: qfont.bold.name
}
Text {
id: curProdPower
text: (app.pluginWarning.length <1)? "Lev.: " + app.currentPowerProd + " W" : ""
color: !dimState? "black" : "white"
anchors {
top: totPower.bottom
topMargin: 1
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt? 22:18
font.family: qfont.bold.name
}
Text {
id: curUsagePower
text: (app.pluginWarning.length <1)? "Verbruik: " + app.currentUsage + " W" : ""
color: !dimState? "black" : "white"
anchors {
top: curProdPower.bottom
topMargin: 1
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt? 22:18
font.family: qfont.bold.name
}
}