mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-01 11:39:26 +00:00
feat(Popup): better transitions
This commit is contained in:
parent
9976c543e8
commit
4a0337379b
2 changed files with 17 additions and 31 deletions
|
|
@ -126,7 +126,10 @@ Item {
|
|||
to: 'opened'
|
||||
|
||||
ScriptAction {
|
||||
script: menu.visible = true
|
||||
script: {
|
||||
menu.visible = true
|
||||
menuOpened()
|
||||
}
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
|
|
@ -135,39 +138,26 @@ Item {
|
|||
property: 'opacity'
|
||||
target: menu
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
PauseAnimation {
|
||||
duration: PopupStyle.animation.openingDuration
|
||||
}
|
||||
|
||||
ScriptAction {
|
||||
script: menuOpened()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Transition {
|
||||
from: 'opened'
|
||||
to: ''
|
||||
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: menu
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
PauseAnimation {
|
||||
ScriptAction {
|
||||
script: menuClosed()
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: menu
|
||||
}
|
||||
|
||||
ScriptAction {
|
||||
script: {
|
||||
visible = false
|
||||
menuClosed()
|
||||
}
|
||||
script: visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,16 +82,12 @@ Item {
|
|||
from: 'opened'
|
||||
to: ''
|
||||
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: popup
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
PauseAnimation {
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: popup
|
||||
}
|
||||
|
||||
ScriptAction {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue