diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-04 09:06:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 09:06:18 +0200 |
commit | a1d4cf68980cb683f901ddf8130af1d8b398d522 (patch) | |
tree | c7ac3dc76aee74c0b94d278bc984d0356cb10361 /editor | |
parent | 79ff8e8ea1fb3cfb6be789f37ab5b3ead06efb03 (diff) | |
parent | 3200f196dafd3f74f3de3e3de93a6c3d38037ab7 (diff) |
Merge pull request #63894 from fire-forge/add-metadata-button
Add spacing above the "Add Metadata" button
Diffstat (limited to 'editor')
-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 9f047c775e..13506718ec 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3251,6 +3251,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)); |