Commit 4296d6b6 authored by Aaron J. Seigo's avatar Aaron J. Seigo
Browse files

stripe autohide

parent 353bffc5
......@@ -13,26 +13,29 @@ Leaves {
MouseArea {
anchors.fill: parent
onPressed: {
stripe.visible = true;
stripe.opacity = 1;
}
}
SatelliteStripe {
id: stripe
visible: false
opacity: 0
onVisibleChanged: {
opacity = visible ? 1 : 0;
}
Behavior on opacity {
NumberAnimation {
duration: 300
duration: 500
easing.type: Easing.InOutQuad
}
}
Timer {
id: hideTimer
interval: 1000
running: parent.opacity == 1
onTriggered: parent.opacity = 0
}
PlasmaCore.SvgItem {
id: square
property int value: 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment