From 311dd6e4e885ff5833756fd9cfa6e8c9c4a8668a Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 25 Jul 2015 21:53:01 +0200 Subject: Extracted highlighter rectangles into separate component --- qml/TerminalItem.qml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'qml/TerminalItem.qml') diff --git a/qml/TerminalItem.qml b/qml/TerminalItem.qml index 26793da..48fb9f7 100644 --- a/qml/TerminalItem.qml +++ b/qml/TerminalItem.qml @@ -116,26 +116,11 @@ Item { right: parent.right } - Rectangle { + Highlighter { id: highlighter width: 10 height: command.height - opacity: 0 - - color: "#909636" - - Behavior on opacity { - NumberAnimation { - duration: 300 - easing.type: Easing.OutCubic - } - } - - function select() { opacity = 1 } - function deselect() { opacity = 0 } - function focus() { color = "#352F6A" } - function unfocus() { color = "#909636" } } TextInput { -- cgit v1.2.3