Commit e9db2d56 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/modules/Common/Popup): remove animation

parent 8ddefd6e
...@@ -135,47 +135,18 @@ Item { ...@@ -135,47 +135,18 @@ Item {
menuOpened() 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 { Transition {
from: 'opened' from: 'opened'
to: '' to: ''
NumberAnimation {
duration: PopupStyle.animation.closingDuration
easing.type: Easing.InOutQuad
property: 'implicitHeight'
target: menu
}
SequentialAnimation { SequentialAnimation {
ScriptAction { ScriptAction {
script: menuClosed() script: {
} menuClosed()
visible = false
NumberAnimation { }
duration: PopupStyle.animation.closingDuration
easing.type: Easing.InOutQuad
property: 'opacity'
target: menu
}
ScriptAction {
script: visible = false
} }
} }
} }
......
...@@ -85,30 +85,14 @@ Item { ...@@ -85,30 +85,14 @@ Item {
} }
} }
} }
NumberAnimation {
duration: PopupStyle.animation.openingDuration
easing.type: Easing.InOutQuad
property: 'opacity'
target: popup
}
}, },
Transition { Transition {
from: 'opened' from: 'opened'
to: '' to: ''
SequentialAnimation { ScriptAction {
NumberAnimation { script: popup.showMinimized()
duration: PopupStyle.animation.closingDuration
easing.type: Easing.InOutQuad
property: 'opacity'
target: popup
}
ScriptAction {
script: popup.showMinimized()
}
} }
} }
] ]
......
...@@ -8,11 +8,6 @@ import Common 1.0 ...@@ -8,11 +8,6 @@ import Common 1.0
QtObject { QtObject {
property color backgroundColor: Colors.k property color backgroundColor: Colors.k
property QtObject animation: QtObject {
property int openingDuration: 250
property int closingDuration: 250
}
property QtObject shadow: QtObject { property QtObject shadow: QtObject {
property color color: Colors.l property color color: Colors.l
property int horizontalOffset: 2 property int horizontalOffset: 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment