mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 01:39:19 +00:00
feat(ui/modules/Common/Popup): remove animation
This commit is contained in:
parent
8ddefd6e9c
commit
e9db2d5698
3 changed files with 6 additions and 56 deletions
|
|
@ -135,47 +135,18 @@ Item {
|
|||
menuOpened()
|
||||
}
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.openingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: menu
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.openingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'implicitHeight'
|
||||
target: menu
|
||||
}
|
||||
},
|
||||
|
||||
Transition {
|
||||
from: 'opened'
|
||||
to: ''
|
||||
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'implicitHeight'
|
||||
target: menu
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
ScriptAction {
|
||||
script: menuClosed()
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: menu
|
||||
}
|
||||
|
||||
ScriptAction {
|
||||
script: visible = false
|
||||
script: {
|
||||
menuClosed()
|
||||
visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,30 +85,14 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.openingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: popup
|
||||
}
|
||||
},
|
||||
|
||||
Transition {
|
||||
from: 'opened'
|
||||
to: ''
|
||||
|
||||
SequentialAnimation {
|
||||
NumberAnimation {
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: popup
|
||||
}
|
||||
|
||||
ScriptAction {
|
||||
script: popup.showMinimized()
|
||||
}
|
||||
ScriptAction {
|
||||
script: popup.showMinimized()
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -8,11 +8,6 @@ import Common 1.0
|
|||
QtObject {
|
||||
property color backgroundColor: Colors.k
|
||||
|
||||
property QtObject animation: QtObject {
|
||||
property int openingDuration: 250
|
||||
property int closingDuration: 250
|
||||
}
|
||||
|
||||
property QtObject shadow: QtObject {
|
||||
property color color: Colors.l
|
||||
property int horizontalOffset: 2
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue