From 29291b3bba2256af67f1f49b41bd33b987897a13 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 0dfbcd0e0d9..fa6ede405fa 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -362,14 +362,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_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_icon(icon); } break; case MSG_TYPE_EDITOR: {