From 411af2c750ffd4e65efb59a8b7793e230048ded7 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 10 May 2020 16:31:44 +0200 Subject: [PATCH] Tweak the editor log selection color to match the current editor theme This overrides the default blue color. --- editor/editor_log.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index c89a7bcf233..78aed96363b 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -63,11 +63,13 @@ void EditorLog::_notification(int p_what) { //button->set_icon(get_icon("Console","EditorIcons")); log->add_theme_font_override("normal_font", get_theme_font("output_source", "EditorFonts")); + log->add_theme_color_override("selection_color", get_theme_color("accent_color", "Editor") * Color(1, 1, 1, 0.4)); } else if (p_what == NOTIFICATION_THEME_CHANGED) { Ref df_output_code = get_theme_font("output_source", "EditorFonts"); if (df_output_code.is_valid()) { if (log != nullptr) { log->add_theme_font_override("normal_font", get_theme_font("output_source", "EditorFonts")); + log->add_theme_color_override("selection_color", get_theme_color("accent_color", "Editor") * Color(1, 1, 1, 0.4)); } } }