aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-12 20:21:51 +0200
committerAdrian Kummerlaender2015-08-12 20:21:51 +0200
commit900d3255441aff62fe54ba7e57d89d472908d65e (patch)
treed96c1e5cc38162f46f93596621ad71490fe797a9 /qml
parent2cbab1bd52ebdc6dae1f3ba63903b107cfd674be (diff)
downloadMetaTerm-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.qml9
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;