aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-04 22:10:09 +0200
committerAdrian Kummerlaender2015-08-04 22:10:09 +0200
commit0d8086c59e1d60b95523295e2da1157a44d7c4ad (patch)
tree7e14a08438f4469d9692080278fc5136faba8ea1
parent55895c872412e062984908baacfac8e6363d36f4 (diff)
downloadMetaTerm-0d8086c59e1d60b95523295e2da1157a44d7c4ad.tar
MetaTerm-0d8086c59e1d60b95523295e2da1157a44d7c4ad.tar.gz
MetaTerm-0d8086c59e1d60b95523295e2da1157a44d7c4ad.tar.bz2
MetaTerm-0d8086c59e1d60b95523295e2da1157a44d7c4ad.tar.lz
MetaTerm-0d8086c59e1d60b95523295e2da1157a44d7c4ad.tar.xz
MetaTerm-0d8086c59e1d60b95523295e2da1157a44d7c4ad.tar.zst
MetaTerm-0d8086c59e1d60b95523295e2da1157a44d7c4ad.zip
Display overlay even when resize operation is prevented
This provides further visual feedback to the user that she has hit a limit. Reduced ease out animation duration to match duration of the highligher focus / defocus animations.
-rw-r--r--qml/EmbeddedTerminal.qml7
-rw-r--r--qml/TerminalItem.qml2
2 files changed, 6 insertions, 3 deletions
diff --git a/qml/EmbeddedTerminal.qml b/qml/EmbeddedTerminal.qml
index 81814bb..4e13131 100644
--- a/qml/EmbeddedTerminal.qml
+++ b/qml/EmbeddedTerminal.qml
@@ -27,8 +27,9 @@ Item {
height: terminal.height
width: parent.width - settings.frameWidth
- function select() { highlighter.select() }
- function deselect() { highlighter.deselect() }
+ function select() { highlighter.select() }
+ function deselect() { highlighter.deselect() }
+ function displayOverlay() { overlay.displayBriefly() }
RowLayout {
id: container
@@ -116,7 +117,7 @@ Item {
property: "opacity"
easing.type: Easing.InSine
- duration: 500
+ duration: 300
from: 0.8
to: 0
}
diff --git a/qml/TerminalItem.qml b/qml/TerminalItem.qml
index 22d4a5e..daa438e 100644
--- a/qml/TerminalItem.qml
+++ b/qml/TerminalItem.qml
@@ -69,6 +69,8 @@ Item {
if ( terminal !== null ) {
if ( terminal.lines > 10 ) {
terminal.lines -= 1;
+ } else {
+ terminal.displayOverlay();
}
}
}