Merge pull request #52987 from Calinou/editor-debugger-color-error-warning-lines

This commit is contained in:
Rémi Verschelde 2021-09-24 21:41:51 +02:00 committed by GitHub
commit 8b279541b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -501,6 +501,10 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
error->set_text(0, time); error->set_text(0, time);
error->set_text_align(0, TreeItem::ALIGN_LEFT); 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; String error_title;
if (oe.callstack.size() > 0) { if (oe.callstack.size() > 0) {
// If available, use the script's stack in the error title. // If available, use the script's stack in the error title.