mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Use a single, reversible privacy screen transition
This commit is contained in:
parent
c9e3ad1850
commit
179c16fd08
2 changed files with 4 additions and 34 deletions
|
@ -78,30 +78,10 @@ Item {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
transitions: [
|
transitions: [
|
||||||
Transition {
|
|
||||||
from: "Visible"
|
|
||||||
to: "Invisible"
|
|
||||||
|
|
||||||
SequentialAnimation {
|
|
||||||
NumberAnimation {
|
|
||||||
target: screenSaver
|
|
||||||
property: "opacity"
|
|
||||||
duration: 250
|
|
||||||
easing.type: Easing.InQuad
|
|
||||||
}
|
|
||||||
|
|
||||||
NumberAnimation {
|
|
||||||
target: screenSaver
|
|
||||||
property: "visible"
|
|
||||||
duration: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
Transition {
|
Transition {
|
||||||
from: "Invisible"
|
from: "Invisible"
|
||||||
to: "Visible"
|
to: "Visible"
|
||||||
|
reversible: true
|
||||||
|
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
@ -113,7 +93,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: screenSaver
|
target: screenSaver
|
||||||
property: "opacity"
|
property: "opacity"
|
||||||
duration: 500
|
duration: 300
|
||||||
easing.type: Easing.InQuad
|
easing.type: Easing.InQuad
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,25 +87,15 @@ AbstractButton {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
transitions: [
|
transitions: [
|
||||||
Transition {
|
|
||||||
from: "Visible"
|
|
||||||
to: "Invisible"
|
|
||||||
|
|
||||||
NumberAnimation {
|
|
||||||
target: blurhash_
|
|
||||||
property: "opacity"
|
|
||||||
duration: 250
|
|
||||||
easing.type: Easing.InQuad
|
|
||||||
}
|
|
||||||
},
|
|
||||||
Transition {
|
Transition {
|
||||||
from: "Invisible"
|
from: "Invisible"
|
||||||
to: "Visible"
|
to: "Visible"
|
||||||
|
reversible: true
|
||||||
|
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: blurhash_
|
target: blurhash_
|
||||||
property: "opacity"
|
property: "opacity"
|
||||||
duration: 500
|
duration: 300
|
||||||
easing.type: Easing.InQuad
|
easing.type: Easing.InQuad
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue