diff options
-rw-r--r-- | qml/EmbeddedTerminal.qml | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/qml/EmbeddedTerminal.qml b/qml/EmbeddedTerminal.qml index 6d8b266..81814bb 100644 --- a/qml/EmbeddedTerminal.qml +++ b/qml/EmbeddedTerminal.qml @@ -79,6 +79,7 @@ Item { forceActiveFocus(); highlighter.select(); session.startShellProgram(); + overlay.enabled = true; } onTermGetFocus: highlighter.focus() @@ -89,24 +90,36 @@ Item { Rectangle { id: overlay + property bool enabled : false + function displayBriefly() { - animation.restart(); + if ( enabled ) { animation.restart() } } anchors.fill: parent opacity: 0 color: settings.overlayBackground - NumberAnimation { + SequentialAnimation { id: animation - target: overlay - property: "opacity" + ScriptAction { + script: overlay.opacity = 0.8 + } + + PauseAnimation { + duration: 500 + } + + NumberAnimation { + target: overlay + property: "opacity" - easing.type: Easing.InSine - duration: 500 - from: 0.8 - to: 0 + easing.type: Easing.InSine + duration: 500 + from: 0.8 + to: 0 + } } Text { |