From 47d7f571c3dc8342e044a876d577e3702a8ff06a Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 10 Mar 2015 12:34:29 +0100 Subject: [PATCH] add warning level --- mix/qml/LogsPane.qml | 6 ++++-- mix/qml/StatusPane.qml | 13 ++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/mix/qml/LogsPane.qml b/mix/qml/LogsPane.qml index bc192f1a7..8956abdf2 100644 --- a/mix/qml/LogsPane.qml +++ b/mix/qml/LogsPane.qml @@ -290,9 +290,11 @@ Rectangle font.pointSize: Style.absoluteSize(-1) color: { if (proxyModel.get(styleData.row).level === "error") - return "red" + return "red"; + else if (proxyModel.get(styleData.row).level === "warning") + return "orange"; else - return "#808080" + return "#808080"; } } } diff --git a/mix/qml/StatusPane.qml b/mix/qml/StatusPane.qml index e9ff312a9..71f622865 100644 --- a/mix/qml/StatusPane.qml +++ b/mix/qml/StatusPane.qml @@ -38,7 +38,7 @@ Rectangle { function warningMessage(text, type) { - status.state = ""; + status.state = "warning"; status.text = text logPane.push("warning", type, text); } @@ -153,6 +153,17 @@ Rectangle { target: statusContainer color: "#fffcd5" } + }, + State { + name: "warning" + PropertyChanges { + target: status + color: "orange" + } + PropertyChanges { + target: statusContainer + color: "#fffcd5" + } } ] onTextChanged: