Repository navigation
Expand file tree
/
Copy pathSolarPanelTile3.qml
More file actions
94 lines (83 loc) · 2.29 KB
/
Copy pathSolarPanelTile3.qml
File metadata and controls
94 lines (83 loc) · 2.29 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
import QtQuick 2.1
import qb.components 1.0
import BasicUIControls 1.0;
Tile {
id: root
property bool dimState: screenStateController.dimmedColors
Text {
id: solarText
text: (app.pluginWarning.length <1)? "Vandaag: " + parseFloat(app.todayValue/1000).toFixed(1) + " kWh" : app.pluginWarning
color: !dimState? "black" : "white"
anchors {
top: parent.top
topMargin: 2
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt? 15:12
font.family: qfont.regular.name
visible: (app.enableSleep||!dimState )
}
Text {
id: curPower
text: (app.pluginWarning.length <1)? app.currentPower + " W" : ""
color: !dimState? "black" : "white"
anchors {
top: solarText.bottom
topMargin: 2
horizontalCenter: parent.horizontalCenter
}
font.pixelSize: isNxt? 30:25
font.family: qfont.bold.name
}
SolarBarGraph {
id: hourbarGraph
anchors {
bottom: parent.bottom
bottomMargin: 30
left:parent.left
//horizontalCenter: parent.horizontalCenter
}
height: isNxt? 90:72
width: isNxt? parent.width - 20 : parent.width - 16
isAreaGraph : true
isRolling : true
rollingMinX : app.rollingMinX
rollingCenterX : app.rollingCenterX
rollingMaxX : app.rollingMaxX
hourGridColor: !dimState? "grey" : "lightgrey"
showTitle: false
backgroundcolor : "transparent"
axisColor :!dimState? "grey" : "lightgrey"
//barColor :!dimState? "black" : "white"
barColor :dimmableColors.graphSolar
lineXaxisvisible : true
textXaxisColor : !dimState? "grey" : "lightgrey"
stepXtext: 3
valueFont: qfont.regular.name
valueSize: isNxt ? 12 : 9
valueTextColor : !dimState? "grey" : "lightgrey"
showValuesOnBar : false
levelColor : !dimState? "grey" : "lightgrey"
levelTextColor : !dimState? "grey" : "lightgrey"
showLevels : true
showValuesOnLevel : true
dataValues: app.rollingfiveminuteValues
// onClicked: {
// stage.openFullscreen(app.solarPanelScreenUrl)
// }
visible: (app.enableSleep||!dimState ) & (app.pluginWarning.length <1)
}
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)
}
}
}