From 353bffc51c8efac703ce94b0936570a26a8c384a Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 19 Aug 2014 17:50:59 +0200 Subject: [PATCH] show stripe on tap --- .../contents/lockscreen/LockScreen.qml | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/look-and-feel/contents/lockscreen/LockScreen.qml b/look-and-feel/contents/lockscreen/LockScreen.qml index 17d62cfc..09acbf0a 100644 --- a/look-and-feel/contents/lockscreen/LockScreen.qml +++ b/look-and-feel/contents/lockscreen/LockScreen.qml @@ -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