From 4296d6b648835334469cbd21ed9ac50719d30694 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 19 Aug 2014 17:54:03 +0200 Subject: [PATCH] stripe autohide --- look-and-feel/contents/lockscreen/LockScreen.qml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/look-and-feel/contents/lockscreen/LockScreen.qml b/look-and-feel/contents/lockscreen/LockScreen.qml index 09acbf0a..50f02c21 100644 --- a/look-and-feel/contents/lockscreen/LockScreen.qml +++ b/look-and-feel/contents/lockscreen/LockScreen.qml @@ -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