mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
show stripe on tap
This commit is contained in:
parent
f5754bde8c
commit
353bffc51c
1 changed files with 18 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue