diff options
author | FireForge <67974470+fire-forge@users.noreply.github.com> | 2022-08-02 17:39:08 -0500 |
---|---|---|
committer | FireForge <67974470+fire-forge@users.noreply.github.com> | 2022-08-02 17:39:08 -0500 |
commit | 3200f196dafd3f74f3de3e3de93a6c3d38037ab7 (patch) | |
tree | cd1ed18c6db9eb93b7da3d7b9db53d7868044bfc | |
parent | 3b39f00761145a44a6c6d45320d6e26b944814a3 (diff) |
Add 4px of spacing above the "Add Metadata" button
-rw-r--r-- | editor/editor_inspector.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index e06e3cbc5f..c21d69a982 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3097,6 +3097,11 @@ void EditorInspector::update_tree() { } if (!hide_metadata) { + // Add 4px of spacing between the "Add Metadata" button and the content above it. + Control *spacer = memnew(Control); + spacer->set_custom_minimum_size(Size2(0, 4) * EDSCALE); + main_vbox->add_child(spacer); + Button *add_md = EditorInspector::create_inspector_action_button(TTR("Add Metadata")); add_md->set_icon(get_theme_icon(SNAME("Add"), SNAME("EditorIcons"))); add_md->connect(SNAME("pressed"), callable_mp(this, &EditorInspector::_show_add_meta_dialog)); |