4
property alias label: label.text
5
property bool active: false
6
property int horizontalPadding: 0
7
property int verticalPadding: 0
9
width: label.width + horizontalPadding*2
10
height: label.height + verticalPadding*2
14
opacity: active || parent.state == "selected" || parent.state == "pressed" ? 1.0 : 0.0
16
color: active || parent.state == "pressed" ? "#ffffffff" : "#00000000"
17
border.color: "#cccccc"
21
Behavior on opacity {NumberAnimation {duration: 100}}
26
source: "artwork/button_background.png"
36
anchors.verticalCenter: parent.verticalCenter
37
anchors.horizontalCenter: parent.horizontalCenter
39
color: active || parent.state == "pressed" ? "#444444" : "#ffffff"
40
horizontalAlignment: Text.AlignHCenter