2
import Ubuntu.Components 0.1
3
import "OpenWeatherMap.js" as Weather
8
// For Status I take the same condition codes from OpenWeatherMap (http://openweathermap.org/wiki/API/Weather_Condition_Codes)
10
property int currentTemp
21
sourceSize.height: units.gu(30)
22
sourceSize.width: units.gu(30)
23
anchors.horizontalCenter: parent.horizontalCenter
24
//source: "../resources/images/"+Weather.getConditionIcon(condition)+".jpg"
25
source: "../resources/images/suncloud.jpg"
26
fillMode: Image.PreserveAspectFit
33
anchors.top: image1.bottom
40
anchors.rightMargin: 0
41
anchors.verticalCenter: parent.verticalCenter
42
anchors.right: tempCurrent.left
46
anchors.horizontalCenter: parent.horizontalCenter
47
font.pixelSize: FontUtils.sizeToPixels("x-small")
48
horizontalAlignment: Text.AlignHCenter
53
anchors.horizontalCenter: parent.horizontalCenter
54
font.pixelSize: FontUtils.sizeToPixels("medium")
55
horizontalAlignment: Text.AlignHCenter
67
verticalAlignment: Text.AlignVCenter
68
anchors.horizontalCenter: parent.horizontalCenter
69
anchors.verticalCenter: parent.verticalCenter
71
horizontalAlignment: Text.AlignHCenter
80
anchors.verticalCenter: parent.verticalCenter
81
anchors.left: tempCurrent.right
85
horizontalAlignment: Text.AlignHCenter
86
anchors.horizontalCenter: parent.horizontalCenter
87
font.pixelSize: FontUtils.sizeToPixels("x-small")
92
horizontalAlignment: Text.AlignHCenter
93
anchors.horizontalCenter: parent.horizontalCenter
94
font.pixelSize: FontUtils.sizeToPixels("medium")