add hex wave background overlay to lock screen
This commit is contained in:
parent
e939a6b096
commit
d495a63894
1 changed files with 24 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import QtQuick.Effects
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import "../modules" as M
|
import "../modules" as M
|
||||||
|
import "../modules/content" as C
|
||||||
|
|
||||||
WlSessionLockSurface {
|
WlSessionLockSurface {
|
||||||
id: root
|
id: root
|
||||||
|
|
@ -41,6 +42,22 @@ WlSessionLockSurface {
|
||||||
opacity: background.opacity
|
opacity: background.opacity
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hex wave overlay
|
||||||
|
C.HexWaveBackground {
|
||||||
|
id: hexWave
|
||||||
|
anchors.fill: parent
|
||||||
|
running: root.lock.secure
|
||||||
|
opacity: background.opacity * 0.4
|
||||||
|
|
||||||
|
NumberAnimation on opacity {
|
||||||
|
id: _hexFadeIn
|
||||||
|
running: false
|
||||||
|
to: 0.4
|
||||||
|
duration: 600
|
||||||
|
easing.type: Easing.OutCubic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Center content
|
// Center content
|
||||||
Item {
|
Item {
|
||||||
id: content
|
id: content
|
||||||
|
|
@ -219,6 +236,13 @@ WlSessionLockSurface {
|
||||||
duration: 300
|
duration: 300
|
||||||
easing.type: Easing.InCubic
|
easing.type: Easing.InCubic
|
||||||
}
|
}
|
||||||
|
NumberAnimation {
|
||||||
|
target: hexWave
|
||||||
|
property: "opacity"
|
||||||
|
to: 0
|
||||||
|
duration: 300
|
||||||
|
easing.type: Easing.InCubic
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyAction {
|
PropertyAction {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue