~sil2100/unity-2d/precise-security

« back to all changes in this revision

Viewing changes to places/Button.qml

  • Committer: Florian Boucault
  • Date: 2010-10-15 00:14:28 UTC
  • Revision ID: florian@boucault.net-20101015001428-h02x4spy1ves0s75
[dash]
Buttons visual appearance match Unity's
SearchBar box implemented

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        color: parent.state == "pressed" ? "#ffffffff" : "#00000000"
69
69
        border.color: "#cccccc"
70
70
        border.width: 1
71
 
        radius: 5
 
71
        radius: 3
72
72
 
73
73
        Behavior on opacity {NumberAnimation {duration: 100}}
74
74
 
75
75
        Image {
76
 
            opacity: 0.3
77
76
            fillMode: Image.Tile
78
77
            anchors.fill: parent
 
78
            source: "artwork/button_background.png"
 
79
            smooth: false
 
80
        }
 
81
    }
 
82
 
 
83
    /* UNUSED CODE: use of a BorderImage instead of a Rectangle
 
84
    BorderImage {
 
85
        anchors.fill: parent
 
86
        opacity: parent.state == "selected" || parent.state == "pressed" ? 1.0 : 0.0
 
87
        source: "artwork/button_border.png"
 
88
        smooth: false
 
89
        border.left: 4
 
90
        border.right: 4
 
91
        border.top: 4
 
92
        border.bottom: 4
 
93
        horizontalTileMode: BorderImage.Stretch
 
94
        verticalTileMode: BorderImage.Stretch
 
95
 
 
96
        Behavior on opacity {NumberAnimation {duration: 100}}
 
97
 
 
98
        Image {
 
99
            anchors.fill: parent
79
100
            anchors.margins: 1
80
 
            // FIXME: wrong background
81
 
            source: "/usr/share/unity/dash_background.png"
82
 
            smooth: false
 
101
            source: "artwork/button_background.png"
 
102
            fillMode: Image.Tile
83
103
        }
84
 
    }
 
104
    }*/
85
105
}