aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-12-14 20:19:50 +0100
committerAdrian Kummerlaender2015-12-14 20:19:50 +0100
commit70fcd5c9221d3d7c0a524559ca053bf74bd6c8f0 (patch)
tree80de27e01f30886d57ee49d2b1ac83aad726bb03
parentef9e2d08263efa811ece898deff6468ad0ed745e (diff)
downloadMetaTerm-70fcd5c9221d3d7c0a524559ca053bf74bd6c8f0.tar
MetaTerm-70fcd5c9221d3d7c0a524559ca053bf74bd6c8f0.tar.gz
MetaTerm-70fcd5c9221d3d7c0a524559ca053bf74bd6c8f0.tar.bz2
MetaTerm-70fcd5c9221d3d7c0a524559ca053bf74bd6c8f0.tar.lz
MetaTerm-70fcd5c9221d3d7c0a524559ca053bf74bd6c8f0.tar.xz
MetaTerm-70fcd5c9221d3d7c0a524559ca053bf74bd6c8f0.tar.zst
MetaTerm-70fcd5c9221d3d7c0a524559ca053bf74bd6c8f0.zip
Add terminal status bar background
-rw-r--r--src/SettingsHandler.qml1
-rw-r--r--src/widget/EmbeddedTerminal.qml23
2 files changed, 23 insertions, 1 deletions
diff --git a/src/SettingsHandler.qml b/src/SettingsHandler.qml
index ca52198..ccc6f97 100644
--- a/src/SettingsHandler.qml
+++ b/src/SettingsHandler.qml
@@ -69,6 +69,7 @@ QtObject {
property string overlayBackground : "black"
property string overlayFontColor : "white"
property string statusFontColor : "gray"
+ property string statusBackground : "black"
}
property Settings command : Settings {
diff --git a/src/widget/EmbeddedTerminal.qml b/src/widget/EmbeddedTerminal.qml
index 5e2e2df..24dc3f6 100644
--- a/src/widget/EmbeddedTerminal.qml
+++ b/src/widget/EmbeddedTerminal.qml
@@ -84,7 +84,11 @@ Item {
statusLine.update();
}
- onTermLostFocus: highlighter.unfocus()
+ onTermLostFocus: {
+ highlighter.unfocus();
+ statusLine.update();
+ }
+
onHeightChanged: overlay.displayBriefly()
onWidthChanged: overlay.displayBriefly()
@@ -165,9 +169,20 @@ Item {
workingDirectory.text = cwd.currentOfPID(shellPID);
}
+ Rectangle {
+ Layout.fillWidth: true
+
+ anchors.fill: parent
+
+ color: settings.terminal.statusBackground
+ }
+
Text {
id: pid
+ Layout.rightMargin: 4
+ Layout.bottomMargin: 2
+
font {
family: settings.terminal.fontFamily
pointSize: settings.terminal.fontSize
@@ -176,6 +191,9 @@ Item {
}
Text {
+ Layout.rightMargin: 4
+ Layout.bottomMargin: 2
+
font {
family: settings.terminal.fontFamily
pointSize: settings.terminal.fontSize
@@ -188,6 +206,9 @@ Item {
Text {
id: workingDirectory
+ Layout.rightMargin: 4
+ Layout.bottomMargin: 2
+
font {
family: settings.terminal.fontFamily
pointSize: settings.terminal.fontSize