Переглянути джерело

Merge pull request #26431 from Chaosus/error_font_update

Updates error label font in script's status bar
Rémi Verschelde 6 роки тому
батько
коміт
3baa499a9c
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      editor/code_editor.cpp

+ 1 - 0
editor/code_editor.cpp

@@ -1144,6 +1144,7 @@ void CodeTextEditor::_update_font() {
 	text_editor->add_font_override("font", get_font("source", "EditorFonts"));
 	text_editor->add_font_override("font", get_font("source", "EditorFonts"));
 
 
 	Ref<Font> status_bar_font = get_font("status_source", "EditorFonts");
 	Ref<Font> status_bar_font = get_font("status_source", "EditorFonts");
+	error->add_font_override("font", status_bar_font);
 	int count = status_bar->get_child_count();
 	int count = status_bar->get_child_count();
 	for (int i = 0; i < count; i++) {
 	for (int i = 0; i < count; i++) {
 		Control *n = Object::cast_to<Control>(status_bar->get_child(i));
 		Control *n = Object::cast_to<Control>(status_bar->get_child(i));