mirror of
https://github.com/godotengine/godot.git
synced 2025-03-07 23:32:58 +08:00
Color error and warning lines in the editor debugger's Errors panel
This improves readability when some errors/warnings are unfolded, as their stack traces will keep their original colors.
This commit is contained in:
parent
01f692c173
commit
cae492562b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user