2
* Copyright (C) 2015 Canonical Ltd
4
* This file is part of Ubuntu Weather App
6
* Ubuntu Weather App is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 3 as
8
* published by the Free Software Foundation.
10
* Ubuntu Weather App is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
import Ubuntu.Components 1.2
30
// FIXME: extended-infomation_* aren't actually on device
35
color: UbuntuColors.coolGrey
36
font.capitalization: Font.Capitalize
38
horizontalAlignment: Text.AlignHCenter
39
text: modelData.condition
43
ForecastDetailsDelegate {
44
id: chanceOfRainForecast
45
forecast: i18n.tr("Chance of rain")
46
imageSource: "../graphics/extended-information_chance-of-rain.svg"
47
value: modelData.chanceOfRain
50
ForecastDetailsDelegate {
52
forecast: i18n.tr("Winds")
53
imageSource: "../graphics/extended-information_wind.svg"
57
ForecastDetailsDelegate {
59
imageSource: "../graphics/extended-information_uv-level.svg"
60
forecast: i18n.tr("UV Index")
61
value: modelData.uvIndex
64
ForecastDetailsDelegate {
66
forecast: i18n.tr("Pollen")
68
//value: modelData.pollen // TODO: extra from API
71
ForecastDetailsDelegate {
73
forecast: i18n.tr("Humidity")
74
imageSource: "../graphics/extended-information_humidity.svg"
75
value: modelData.humidity
78
ForecastDetailsDelegate {
80
forecast: i18n.tr("Sunrise")
81
imageSource: "../graphics/extended-information_sunrise.svg"
82
value: modelData.sunrise
85
ForecastDetailsDelegate {
87
forecast: i18n.tr("Sunset")
88
imageSource: "../graphics/extended-information_sunset.svg"
89
value: modelData.sunset