Tweak the editor log selection color to match the current editor theme
This overrides the default blue color.
(cherry picked from commit 411af2c750
)
This commit is contained in:
parent
b1455c68eb
commit
c1cf8a5068
1 changed files with 2 additions and 0 deletions
|
@ -63,11 +63,13 @@ void EditorLog::_notification(int p_what) {
|
||||||
|
|
||||||
//button->set_icon(get_icon("Console","EditorIcons"));
|
//button->set_icon(get_icon("Console","EditorIcons"));
|
||||||
log->add_font_override("normal_font", get_font("output_source", "EditorFonts"));
|
log->add_font_override("normal_font", get_font("output_source", "EditorFonts"));
|
||||||
|
log->add_color_override("selection_color", get_color("accent_color", "Editor") * Color(1, 1, 1, 0.4));
|
||||||
} else if (p_what == NOTIFICATION_THEME_CHANGED) {
|
} else if (p_what == NOTIFICATION_THEME_CHANGED) {
|
||||||
Ref<DynamicFont> df_output_code = get_font("output_source", "EditorFonts");
|
Ref<DynamicFont> df_output_code = get_font("output_source", "EditorFonts");
|
||||||
if (df_output_code.is_valid()) {
|
if (df_output_code.is_valid()) {
|
||||||
if (log != NULL) {
|
if (log != NULL) {
|
||||||
log->add_font_override("normal_font", get_font("output_source", "EditorFonts"));
|
log->add_font_override("normal_font", get_font("output_source", "EditorFonts"));
|
||||||
|
log->add_color_override("selection_color", get_color("accent_color", "Editor") * Color(1, 1, 1, 0.4));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue