aboutsummaryrefslogtreecommitdiff
path: root/EmbeddedTerminal.qml
diff options
context:
space:
mode:
Diffstat (limited to 'EmbeddedTerminal.qml')
-rw-r--r--EmbeddedTerminal.qml20
1 files changed, 11 insertions, 9 deletions
diff --git a/EmbeddedTerminal.qml b/EmbeddedTerminal.qml
index e02ba61..f4f104e 100644
--- a/EmbeddedTerminal.qml
+++ b/EmbeddedTerminal.qml
@@ -12,7 +12,8 @@ Item {
width: container.width
height: container.height
- function focus() { terminal.forceActiveFocus() }
+ function select() { highlighter.select() }
+ function deselect() { highlighter.deselect() }
Row {
id: container
@@ -23,7 +24,7 @@ Item {
width: 10
height: terminal.height
- color: "#aadb0f"
+ color: "#909636"
Behavior on opacity {
NumberAnimation {
@@ -32,8 +33,10 @@ Item {
}
}
- function focus() { opacity = 1 }
- function unfocus() { opacity = 0 }
+ function select() { opacity = 1 }
+ function deselect() { opacity = 0 }
+ function focus() { color = "#352F6A" }
+ function unfocus() { color = "#909636" }
}
Rectangle {
@@ -66,16 +69,15 @@ Item {
}
}
+ onTermGetFocus: highlighter.focus()
+ onTermLostFocus: highlighter.unfocus()
+
MouseArea {
anchors.fill: parent
- acceptedButtons: Qt.LeftButton
- onClicked: parent.forceActiveFocus();
+ acceptedButtons: Qt.NoButton
onWheel: { }
}
- onTermGetFocus: highlighter.focus()
- onTermLostFocus: highlighter.unfocus()
-
Component.onCompleted: {
terminal.forceActiveFocus();
session.startShellProgram();