add a shadow

This commit is contained in:
Marco Martin 2011-10-10 14:02:48 +02:00
parent 3da7704b3a
commit 9c695c5cf5

View File

@ -36,13 +36,26 @@ DualStateButton {
}
PlasmaCore.FrameSvgItem {
imagePath: "widgets/button"
prefix: "shadow"
anchors {
fill: button
leftMargin: -margins.left
topMargin: -margins.top
rightMargin: -margins.right
bottomMargin: -margins.bottom
}
}
PlasmaCore.FrameSvgItem {
id: button
imagePath: "widgets/button"
prefix: "normal"
anchors {
top: parent.top
bottom: parent.bottom
}
width: parent.width / 2
width: height
x: checked ? width : 0
Behavior on x {
PropertyAnimation { duration: 100 }