From 900d3255441aff62fe54ba7e57d89d472908d65e Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 12 Aug 2015 20:21:51 +0200 Subject: Add command output error font color to settings --- qml/CommandInput.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qml/CommandInput.qml b/qml/CommandInput.qml index c4e6302..1f67f7c 100644 --- a/qml/CommandInput.qml +++ b/qml/CommandInput.qml @@ -21,6 +21,7 @@ Item { property int fontSize : 12 property string fontFamily : "Monospace" property color fontColor : "white" + property color errorColor : "red" } onVisibleChanged: container.reset() @@ -121,11 +122,15 @@ Item { } function error(msg) { - text += '' + msg + ''; + text = '' + + msg + + ''; } onTextChanged: { - if ( text === '' ) { + if ( isInitial() ) { Layout.preferredHeight = 0; } else { Layout.preferredHeight = contentHeight; -- cgit v1.2.3