show stripe on tap

This commit is contained in:
Aaron Seigo 2014-08-19 17:50:59 +02:00
parent f5754bde8c
commit 353bffc51c

View file

@ -2,7 +2,7 @@ import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import "../components"
Item {
Leaves {
id: lockscreen
PlasmaCore.Svg {
@ -10,13 +10,28 @@ Item {
imagePath: Qt.resolvedUrl("images/symbols.svgz")
}
Leaves {
id: background
MouseArea {
anchors.fill: parent
onPressed: {
stripe.visible = true;
}
}
SatelliteStripe {
id: stripe
visible: false
opacity: 0
onVisibleChanged: {
opacity = visible ? 1 : 0;
}
Behavior on opacity {
NumberAnimation {
duration: 300
easing.type: Easing.InOutQuad
}
}
PlasmaCore.SvgItem {
id: square