diff options
author | Adrian Kummerlaender | 2015-08-12 20:21:51 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2015-08-12 20:21:51 +0200 |
commit | 900d3255441aff62fe54ba7e57d89d472908d65e (patch) | |
tree | d96c1e5cc38162f46f93596621ad71490fe797a9 /qml | |
parent | 2cbab1bd52ebdc6dae1f3ba63903b107cfd674be (diff) | |
download | MetaTerm-900d3255441aff62fe54ba7e57d89d472908d65e.tar MetaTerm-900d3255441aff62fe54ba7e57d89d472908d65e.tar.gz MetaTerm-900d3255441aff62fe54ba7e57d89d472908d65e.tar.bz2 MetaTerm-900d3255441aff62fe54ba7e57d89d472908d65e.tar.lz MetaTerm-900d3255441aff62fe54ba7e57d89d472908d65e.tar.xz MetaTerm-900d3255441aff62fe54ba7e57d89d472908d65e.tar.zst MetaTerm-900d3255441aff62fe54ba7e57d89d472908d65e.zip |
Add command output error font color to settings
Diffstat (limited to 'qml')
-rw-r--r-- | qml/CommandInput.qml | 9 |
1 files 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 += '<i><font color="red">' + msg + '</font></i>'; + text = '<i><font color="' + + settings.errorColor + + '">' + + msg + + '</font></i>'; } onTextChanged: { - if ( text === '' ) { + if ( isInitial() ) { Layout.preferredHeight = 0; } else { Layout.preferredHeight = contentHeight; |