diff options
author | passivestar <60579014+passivestar@users.noreply.github.com> | 2024-06-27 16:01:35 +0400 |
---|---|---|
committer | passivestar <60579014+passivestar@users.noreply.github.com> | 2024-06-27 16:01:35 +0400 |
commit | 1a1d8a58ca24a80a2353bb16c5263d4ea8b7155f (patch) | |
tree | d074375cdc1b888e5848c9bc88bbc8f4a5f9537f | |
parent | 7907ef835d17cd01c14203c239dc017cbe8605a3 (diff) | |
download | redot-engine-1a1d8a58ca24a80a2353bb16c5263d4ea8b7155f.tar.gz |
Center the label in overview of script editor
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 9d5dbb4a4f..a670c7937b 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -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); |