~zsombi/ubuntu-ui-toolkit/scrollbar-delegate-fix

« back to all changes in this revision

Viewing changes to themes/Ambiance/qmltheme/ButtonDelegate.qml

  • Committer: Zsombor Egri
  • Date: 2013-01-08 11:52:24 UTC
  • mfrom: (259.2.19 trunk)
  • Revision ID: zsombor.egri@canonical.com-20130108115224-0tz6mmkx37xzlwms
trunk merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    }
32
32
 
33
33
    UbuntuShape {
34
 
        id: shape
35
 
 
36
 
        anchors.fill: parent
37
 
        color: item.color
38
 
        maskSource: StyleUtils.itemStyleProperty("shape", "")
39
 
        borderSource: ""
40
 
    }
41
 
 
42
 
    UbuntuShape {
43
34
        id: border
44
35
 
45
36
        anchors.fill: parent
 
37
        color: item.color
46
38
        borderSource: StyleUtils.itemStyleProperty("borderIdle")
47
39
        opacity: 1.0 - borderPressed.opacity
48
40
    }
51
43
        id: borderPressed
52
44
 
53
45
        anchors.fill: parent
 
46
        color: item.color
54
47
        borderSource: StyleUtils.itemStyleProperty("borderPressed")
55
48
        opacity: item.pressed ? 1.0 : 0.0
56
49
        Behavior on opacity { NumberAnimation { duration: 200; easing.type: Easing.OutQuint } }