blob: ac1e23007b47d62431f8561175ed39a79c96b4eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
import QtQuick 2.0
Item {
id: item
property bool enabled : false
property alias text : content.text
function displayBriefly() {
if ( enabled ) {
animation.restart()
}
}
Rectangle {
id: background
anchors.fill: parent
opacity: 0
color: settings.terminal.overlayBackground
SequentialAnimation {
id: animation
ScriptAction {
script: background.opacity = 0.8
}
PauseAnimation {
duration: 500
}
NumberAnimation {
target: background
property: "opacity"
easing.type: Easing.InSine
duration: 300
from: 0.8
to: 0
}
}
Text {
id: content
anchors {
horizontalCenter: background.horizontalCenter
verticalCenter: background.verticalCenter
}
font {
family: settings.terminal.fontFamily
pointSize: settings.terminal.fontSize * 2
}
color: settings.terminal.overlayFontColor
}
}
}
|