Debian Codegraph @

src/app/qml/components/HomeGraphic.qml

raw
1 /*
2 * Copyright (C) 2015 Canonical Ltd.
3 *
4 * This file is part of Lomiri Weather App
5 *
6 * Lomiri 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.
9 *
10 * Lomiri 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.
14 *
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/>.
17 */
18
19 import QtQuick 2.12
20 import Lomiri.Components 1.3
21
22 Item {
23 height: units.gu(32)
24 width: parent.width
25
26 property alias icon: iconImage.source
27
28 // TODO: will be on 'rails' (horizontal listview?) to reveal hourly forecast
29 Icon {
30 id: iconImage
31 anchors {
32 centerIn: parent
33 }
34 height: parent.height
35 width: height
36 color: theme.palette.normal.base
37 opacity: .5
38 }
39 }
40