From 0d8086c59e1d60b95523295e2da1157a44d7c4ad Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 4 Aug 2015 22:10:09 +0200 Subject: 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. --- qml/EmbeddedTerminal.qml | 7 ++++--- qml/TerminalItem.qml | 2 ++ 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(); } } } -- cgit v1.2.3