Index: sources/gui/qml/components/ModalDialog.qml =================================================================== diff -u -r0797b3a8c28ad756be125a91c45fb53a2783dc9a -r7fb13d9e1a453a37ab4dea5536e0f19ed6e272d2 --- sources/gui/qml/components/ModalDialog.qml (.../ModalDialog.qml) (revision 0797b3a8c28ad756be125a91c45fb53a2783dc9a) +++ sources/gui/qml/components/ModalDialog.qml (.../ModalDialog.qml) (revision 7fb13d9e1a453a37ab4dea5536e0f19ed6e272d2) @@ -39,6 +39,7 @@ property bool showDropShadow : false property alias backgroundItem : _backgroundItem.children property alias backgroundItemZ : _backgroundItem.z + property bool closeOnStateChange : true width : Variables.dialogWidth height : Variables.dialogHeight @@ -47,8 +48,8 @@ x: Math.round((Variables.applicationWidth - width) / 2) y: Math.round((Variables.applicationHeight - height) / 2) - enter: Transition { NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 200 } } - exit : Transition { NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 200 } } + enter: Transition { NumberAnimation { property: "scale"; from: 0.8; to: 1.0; duration: 200; easing.type: Easing.OutCubic } } + exit : Transition { NumberAnimation { property: "scale"; from: 1.0; to: 0.8; duration: 200; easing.type: Easing.InCubic } } modal: true @@ -58,7 +59,7 @@ anchors.bottomMargin: _alarmBar.visible ? Variables.notificationHeight : 0 color : "#99000000" - Behavior on opacity { NumberAnimation { duration: 300} } + Behavior on opacity { NumberAnimation { duration: 200} } } background: Rectangle { id: _backgroundRect @@ -89,7 +90,7 @@ // fix closing opened dialogs when opmode is changed Connections { target: vTDOpMode - function onOpModeChanged() { if ( _root.visible ) { _root.close() } } + function onOpModeChanged() { if ( _root.visible && _root.closeOnStateChange ) { _root.close() } } } NumberAnimation { id: _autoHideAnimation