From 9b8833dbbfa5461f7de3410914d9e17127870053 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 2 Aug 2024 17:55:58 +0200 Subject: [PATCH] Tweak warning/error formatting in EditorLog to be closer to console output This makes the output easier to understand when it's copied to a plain text file (without visible colors). --- editor/editor_log.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index db26a75cb82..e738b6e3666 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -358,14 +358,18 @@ void EditorLog::_add_log_line(LogMessage &p_message, bool p_replace_previous) { log->push_color(theme_cache.error_color); Ref icon = theme_cache.error_icon; log->add_image(icon); - log->add_text(" "); + log->push_bold(); + log->add_text(" ERROR: "); + log->pop(); // bold tool_button->set_button_icon(icon); } break; case MSG_TYPE_WARNING: { log->push_color(theme_cache.warning_color); Ref icon = theme_cache.warning_icon; log->add_image(icon); - log->add_text(" "); + log->push_bold(); + log->add_text(" WARNING: "); + log->pop(); // bold tool_button->set_button_icon(icon); } break; case MSG_TYPE_EDITOR: {