Fix dialogs in ProjectManage don't with editor theme issue

(cherry picked from commit c1f23bb6af)
This commit is contained in:
Geequlim 2016-09-07 15:13:31 +08:00 committed by Rémi Verschelde
parent f90370886f
commit 772a590261
1 changed files with 3 additions and 4 deletions

View File

@ -1196,15 +1196,12 @@ ProjectManager::ProjectManager() {
FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("file_dialog/show_hidden_files")); FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("file_dialog/show_hidden_files"));
set_area_as_parent_rect(); set_area_as_parent_rect();
set_theme(create_default_theme());
gui_base = memnew( Control ); gui_base = memnew( Control );
add_child(gui_base); add_child(gui_base);
gui_base->set_area_as_parent_rect(); gui_base->set_area_as_parent_rect();
set_theme(create_default_theme());
Ref<Theme> theme = create_editor_theme();
gui_base->set_theme(theme);
Panel *panel = memnew( Panel ); Panel *panel = memnew( Panel );
gui_base->add_child(panel); gui_base->add_child(panel);
panel->set_area_as_parent_rect(); panel->set_area_as_parent_rect();
@ -1391,6 +1388,8 @@ ProjectManager::ProjectManager() {
last_clicked = ""; last_clicked = "";
SceneTree::get_singleton()->connect("files_dropped", this, "_files_dropped"); SceneTree::get_singleton()->connect("files_dropped", this, "_files_dropped");
gui_base->set_theme(create_editor_theme());
} }