aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/EmbeddedTerminal.qml38
1 files changed, 13 insertions, 25 deletions
diff --git a/qml/EmbeddedTerminal.qml b/qml/EmbeddedTerminal.qml
index 70b7cf1..382a781 100644
--- a/qml/EmbeddedTerminal.qml
+++ b/qml/EmbeddedTerminal.qml
@@ -76,18 +76,30 @@ Item {
onTermGetFocus: highlighter.focus()
onTermLostFocus: highlighter.unfocus()
onHeightChanged: overlay.displayBriefly();
+ onWidthChanged: overlay.displayBriefly();
Rectangle {
id: overlay
function displayBriefly() {
- animation.running = true;
+ animation.restart();
}
anchors.fill: parent
opacity: 0
color: "black"
+ NumberAnimation {
+ id: animation
+ target: overlay
+ property: "opacity"
+
+ easing.type: Easing.InSine
+ duration: 500
+ from: 0.8
+ to: 0
+ }
+
Text {
anchors {
horizontalCenter: overlay.horizontalCenter
@@ -106,30 +118,6 @@ Item {
}
color: "white"
}
-
- SequentialAnimation {
- id: animation
-
- NumberAnimation {
- target: overlay
- property: "opacity"
-
- easing.type: Easing.InSine
- duration: 500
- from: 0
- to: 0.8
- }
-
- NumberAnimation {
- target: overlay
- property: "opacity"
-
- easing.type: Easing.InSine
- duration: 500
- from: 0.8
- to: 0
- }
- }
}
MouseArea {