summaryrefslogtreecommitdiff
path: root/editor/project_manager.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-19 22:20:16 +0100
committerGitHub <noreply@github.com>2020-01-19 22:20:16 +0100
commit5358254b6ca752b88138a2b523767093f572ca4c (patch)
tree06557f4e5631ff3f0931ef4c1703a74d8bd4a47a /editor/project_manager.cpp
parentcb088e391e69420eaa77f94e390902dd5f1e4d55 (diff)
parentd72f5e0938592088d3addc817cd9d9d3c91d1ae0 (diff)
Merge pull request #35325 from Calinou/optimize-editor-theme-creation
Only create the editor theme once
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r--editor/project_manager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index ca3431d3ec..9bbb9bd38c 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -2419,12 +2419,11 @@ ProjectManager::ProjectManager() {
FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("filesystem/file_dialog/show_hidden_files"));
set_anchors_and_margins_preset(Control::PRESET_WIDE);
- set_theme(create_editor_theme());
+ set_theme(create_custom_theme());
gui_base = memnew(Control);
add_child(gui_base);
gui_base->set_anchors_and_margins_preset(Control::PRESET_WIDE);
- gui_base->set_theme(create_custom_theme());
Panel *panel = memnew(Panel);
gui_base->add_child(panel);