mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
feat(PopupStyle): add opening/closingDuration properties
This commit is contained in:
parent
732d143d0c
commit
5b209a04ff
3 changed files with 13 additions and 6 deletions
|
|
@ -122,7 +122,7 @@ Item {
|
|||
to: 'Opened'
|
||||
|
||||
NumberAnimation {
|
||||
duration: 250
|
||||
duration: PopupStyle.animation.openingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: menu
|
||||
|
|
@ -130,7 +130,7 @@ Item {
|
|||
|
||||
SequentialAnimation {
|
||||
PauseAnimation {
|
||||
duration: 250
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
}
|
||||
|
||||
ScriptAction {
|
||||
|
|
@ -144,22 +144,22 @@ Item {
|
|||
to: ''
|
||||
|
||||
NumberAnimation {
|
||||
duration: 250
|
||||
duration: PopupStyle.animation.openingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'opacity'
|
||||
target: menu
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
duration: 250
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
property: 'visible' // Ugly, use `NumberAnimation` on bool.
|
||||
property: 'visible' // Ugly, use `NumberAnimation` with a bool.
|
||||
target: menu
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
PauseAnimation {
|
||||
duration: 250
|
||||
duration: PopupStyle.animation.closingDuration
|
||||
}
|
||||
|
||||
ScriptAction {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ Item {
|
|||
|
||||
property alias placeholderText: searchField.placeholderText
|
||||
|
||||
property bool _isOpen: false
|
||||
|
||||
signal menuClosed
|
||||
signal menuOpened
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@ 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.f
|
||||
property int horizontalOffset: 2
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue