~vthompson/ubuntu-weather-app/reboot-graphics

« back to all changes in this revision

Viewing changes to app/components/HomeGraphic.qml

  • Committer: Victor Thompson
  • Date: 2015-02-08 20:56:21 UTC
  • Revision ID: victor.thompson@gmail.com-20150208205621-d1ds061oaott2xgx
* Use new resources

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    height: units.gu(32)
24
24
    width: parent.width
25
25
 
26
 
    property alias icon: iconLabel.text
 
26
    property alias icon: iconImage.source
27
27
 
28
28
    // TODO: will be on 'rails' (horizontal listview?) to reveal hourly forecast
29
29
    Image {
 
30
        id: iconImage
30
31
        anchors {
31
 
            fill: parent
32
 
        }
33
 
 
34
 
        Rectangle {
35
 
            anchors {
36
 
                fill: parent
37
 
            }
38
 
            color: "#F00"
39
 
 
40
 
            Label {
41
 
                id: iconLabel
42
 
                anchors {
43
 
                    centerIn: parent
44
 
                }
45
 
            }
46
 
        }
 
32
            centerIn: parent
 
33
        }
 
34
        fillMode: Image.PreserveAspectFit
 
35
        width: parent.width
47
36
    }
48
37
}
49
38