~ubuntu-branches/ubuntu/natty/unity-2d/natty-updates

« back to all changes in this revision

Viewing changes to places/HomeButton.qml

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2011-02-24 13:45:27 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110224134527-d2lk3qu3sxe9a8z0
Tags: 3.6.0-0ubuntu1
New Upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
Button {
4
4
    property alias icon: icon.source
5
5
    property alias label: label.text
6
 
 
7
 
    width: 126
8
 
    height: 148
9
 
 
10
 
    Image {
11
 
        id: icon
12
 
 
 
6
    property alias iconSourceSize: icon.sourceSize
 
7
 
 
8
    width: 160
 
9
    height: 172
 
10
 
 
11
    Item {
 
12
        anchors.right: parent.right
 
13
        anchors.left: parent.left
13
14
        anchors.top: parent.top
14
 
        anchors.left: parent.left
15
 
        anchors.leftMargin: -1
16
 
        anchors.topMargin: -1
17
 
        width: 128
18
 
        height: 128
19
 
        fillMode: Image.PreserveAspectFit
20
 
        sourceSize.width: width
21
 
        sourceSize.height: height
22
 
 
23
 
        asynchronous: true
24
 
        opacity: status == Image.Ready ? 1 : 0
25
 
        Behavior on opacity {NumberAnimation {duration: 200; easing.type: Easing.InOutQuad}}
 
15
        anchors.bottom: label.bottom
 
16
        anchors.bottomMargin: 30
 
17
 
 
18
        Image {
 
19
            id: icon
 
20
 
 
21
            width: sourceSize.width
 
22
            height: sourceSize.height
 
23
 
 
24
            anchors.centerIn: parent
 
25
            fillMode: Image.PreserveAspectFit
 
26
 
 
27
            asynchronous: true
 
28
            opacity: status == Image.Ready ? 1 : 0
 
29
            Behavior on opacity {NumberAnimation {duration: 200; easing.type: Easing.InOutQuad}}
 
30
        }
26
31
    }
27
32
 
28
33
    TextCustom {
38
43
        anchors.rightMargin: 5
39
44
        anchors.leftMargin: 7
40
45
        font.underline: parent.activeFocus
 
46
        font.bold: true
 
47
        font.pixelSize: 16
41
48
    }
42
49
}