mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03: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 org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
import "../components"
|
import "../components"
|
||||||
|
|
||||||
Item {
|
Leaves {
|
||||||
id: lockscreen
|
id: lockscreen
|
||||||
|
|
||||||
PlasmaCore.Svg {
|
PlasmaCore.Svg {
|
||||||
|
|
@ -10,13 +10,28 @@ Item {
|
||||||
imagePath: Qt.resolvedUrl("images/symbols.svgz")
|
imagePath: Qt.resolvedUrl("images/symbols.svgz")
|
||||||
}
|
}
|
||||||
|
|
||||||
Leaves {
|
MouseArea {
|
||||||
id: background
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
onPressed: {
|
||||||
|
stripe.visible = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SatelliteStripe {
|
SatelliteStripe {
|
||||||
id: stripe
|
id: stripe
|
||||||
|
visible: false
|
||||||
|
opacity: 0
|
||||||
|
|
||||||
|
onVisibleChanged: {
|
||||||
|
opacity = visible ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation {
|
||||||
|
duration: 300
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PlasmaCore.SvgItem {
|
PlasmaCore.SvgItem {
|
||||||
id: square
|
id: square
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue