4
property alias label: label.text
5
property int horizontalPadding: 0
6
property int verticalPadding: 0
7
property bool isActiveSection: false
8
property bool activeOrPressed: isActiveSection || state == "pressed"
10
width: label.width + horizontalPadding*2
11
height: label.height + verticalPadding*2
15
opacity: activeOrPressed || parent.state == "selected" ? 1.0 : 0.0
17
color: activeOrPressed ? "#ffffffff" : "#00000000"
18
border.color: "#cccccc"
22
Behavior on opacity {NumberAnimation {duration: 100}}
27
source: "artwork/button_background.png"
37
anchors.verticalCenter: parent.verticalCenter
38
anchors.horizontalCenter: parent.horizontalCenter
40
color: activeOrPressed ? "#444444" : "#ffffff"
41
horizontalAlignment: Text.AlignHCenter