summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-24 21:41:51 +0200
committerGitHub <noreply@github.com>2021-09-24 21:41:51 +0200
commit8b279541b2191e0b4016f52f45b30b48c8c6090c (patch)
treeb7203d3e61c7cf0073c709d13c172e1249394db4
parent01d505e507cc80e47e021d54fed7fdfc54d325be (diff)
parentcae492562b90efc537e65752d627f90a06229348 (diff)
Merge pull request #52987 from Calinou/editor-debugger-color-error-warning-lines
-rw-r--r--editor/debugger/script_editor_debugger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp
index 5fda1c76ef..ab857dc3ad 100644
--- a/editor/debugger/script_editor_debugger.cpp
+++ b/editor/debugger/script_editor_debugger.cpp
@@ -501,6 +501,10 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
error->set_text(0, time);
error->set_text_align(0, TreeItem::ALIGN_LEFT);
+ const Color color = get_theme_color(oe.warning ? SNAME("warning_color") : SNAME("error_color"), SNAME("Editor"));
+ error->set_custom_color(0, color);
+ error->set_custom_color(1, color);
+
String error_title;
if (oe.callstack.size() > 0) {
// If available, use the script's stack in the error title.