You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix warnings and error panel font not updating
This commit is contained in:
@@ -2848,17 +2848,9 @@ void ScriptTextEditor::_enable_code_editor() {
|
|||||||
_update_gutter_indexes();
|
_update_gutter_indexes();
|
||||||
|
|
||||||
editor_box->add_child(warnings_panel);
|
editor_box->add_child(warnings_panel);
|
||||||
warnings_panel->add_theme_font_override(
|
|
||||||
"normal_font", EditorNode::get_singleton()->get_editor_theme()->get_font(SNAME("main"), EditorStringName(EditorFonts)));
|
|
||||||
warnings_panel->add_theme_font_size_override(
|
|
||||||
"normal_font_size", EditorNode::get_singleton()->get_editor_theme()->get_font_size(SNAME("main_size"), EditorStringName(EditorFonts)));
|
|
||||||
warnings_panel->connect("meta_clicked", callable_mp(this, &ScriptTextEditor::_warning_clicked));
|
warnings_panel->connect("meta_clicked", callable_mp(this, &ScriptTextEditor::_warning_clicked));
|
||||||
|
|
||||||
editor_box->add_child(errors_panel);
|
editor_box->add_child(errors_panel);
|
||||||
errors_panel->add_theme_font_override(
|
|
||||||
"normal_font", EditorNode::get_singleton()->get_editor_theme()->get_font(SNAME("main"), EditorStringName(EditorFonts)));
|
|
||||||
errors_panel->add_theme_font_size_override(
|
|
||||||
"normal_font_size", EditorNode::get_singleton()->get_editor_theme()->get_font_size(SNAME("main_size"), EditorStringName(EditorFonts)));
|
|
||||||
errors_panel->connect("meta_clicked", callable_mp(this, &ScriptTextEditor::_error_clicked));
|
errors_panel->connect("meta_clicked", callable_mp(this, &ScriptTextEditor::_error_clicked));
|
||||||
|
|
||||||
add_child(context_menu);
|
add_child(context_menu);
|
||||||
|
|||||||
@@ -364,13 +364,6 @@ void ShaderTextEditor::_load_theme_settings() {
|
|||||||
// Colorize preprocessor include strings.
|
// Colorize preprocessor include strings.
|
||||||
const Color string_color = EDITOR_GET("text_editor/theme/highlighting/string_color");
|
const Color string_color = EDITOR_GET("text_editor/theme/highlighting/string_color");
|
||||||
syntax_highlighter->add_color_region("\"", "\"", string_color, false);
|
syntax_highlighter->add_color_region("\"", "\"", string_color, false);
|
||||||
|
|
||||||
if (warnings_panel) {
|
|
||||||
// Warnings panel.
|
|
||||||
warnings_panel->add_theme_font_override("normal_font", EditorNode::get_singleton()->get_editor_theme()->get_font(SNAME("main"), EditorStringName(EditorFonts)));
|
|
||||||
warnings_panel->add_theme_font_size_override("normal_font_size", EditorNode::get_singleton()->get_editor_theme()->get_font_size(SNAME("main_size"), EditorStringName(EditorFonts)));
|
|
||||||
}
|
|
||||||
|
|
||||||
syntax_highlighter->set_uint_suffix_enabled(true);
|
syntax_highlighter->set_uint_suffix_enabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user