summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-02-20 17:27:47 +0100
committerGitHub <noreply@github.com>2019-02-20 17:27:47 +0100
commit6b0ecb7266c437469ec57d67d2a65958506aa309 (patch)
tree08322b142d04efcbe01afc2ad839d75602f0ced1
parent9714f701c5667994a3966329dffdc5c864ba201f (diff)
parent0de15955adf5a28e5603a9e3983721634cfffd59 (diff)
Merge pull request #26092 from YeldhamDev/top_bar_spacing
Add small spacing between top bars in main editor and project manager
-rw-r--r--editor/editor_node.cpp1
-rw-r--r--editor/project_manager.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 973b2cc7a2..0d1738c549 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -5004,6 +5004,7 @@ EditorNode::EditorNode() {
main_vbox = memnew(VBoxContainer);
gui_base->add_child(main_vbox);
main_vbox->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 8);
+ main_vbox->add_constant_override("separation", 8 * EDSCALE);
menu_hb = memnew(HBoxContainer);
main_vbox->add_child(menu_hb);
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index bda5add381..0a24f325fd 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -1901,6 +1901,7 @@ ProjectManager::ProjectManager() {
VBoxContainer *vb = memnew(VBoxContainer);
panel->add_child(vb);
vb->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 8 * EDSCALE);
+ vb->add_constant_override("separation", 8 * EDSCALE);
String cp;
cp += 0xA9;