1
0
mirror of https://github.com/godotengine/godot synced 2024-07-01 09:55:30 +00:00

Center the label in overview of script editor

This commit is contained in:
passivestar 2024-06-27 16:01:35 +04:00
parent 7907ef835d
commit 1a1d8a58ca

View File

@ -4049,6 +4049,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
filename = memnew(Label);
filename->set_clip_text(true);
filename->set_h_size_flags(SIZE_EXPAND_FILL);
filename->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
filename->add_theme_style_override(CoreStringName(normal), EditorNode::get_singleton()->get_editor_theme()->get_stylebox(CoreStringName(normal), SNAME("LineEdit")));
buttons_hbox->add_child(filename);