Added terminal size overlay

This commit is contained in:
Filippo Scognamiglio
2014-04-17 13:27:41 +02:00
parent 2af093220f
commit 115171e969
8 changed files with 69 additions and 9 deletions
+29
View File
@@ -0,0 +1,29 @@
import QtQuick 2.0
Rectangle{
property size terminalSize
property real topOpacity: 0.6
width: textSize.width * 2
height: textSize.height * 2
radius: 5
border.width: 2
border.color: "white"
color: "black"
opacity: sizetimer.running ? 0.6 : 0.0
Behavior on opacity{NumberAnimation{duration: 200}}
onTerminalSizeChanged: sizetimer.restart()
Text{
id: textSize
anchors.centerIn: parent
color: "white"
text: terminalSize.width + "x" + terminalSize.height
}
Timer{
id: sizetimer
interval: 1000
running: false
}
}