diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-14 00:42:36 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-14 00:42:36 +0100 |
commit | e97372068b68bb8a2ad7c034a038f6520f24eb30 (patch) | |
tree | d20674591b798d55d193389c5bf9f6e6998e2ffe /editor/editor_node.cpp | |
parent | 81b9c2687212c0fa1182f825edb8b5cfd8a79803 (diff) | |
parent | 026002859b8d0481ecfc5dcf37dbafbc17ca6190 (diff) |
Merge pull request #71360 from bruvzg/progress_dialog_theme
Fix editor progress dialog theme update.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index ae9261864f..b1b40eb52a 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -584,10 +584,11 @@ void EditorNode::_notification(int p_what) { case NOTIFICATION_ENTER_TREE: { Engine::get_singleton()->set_editor_hint(true); - Window *window = static_cast<Window *>(get_tree()->get_root()); + Window *window = get_window(); if (window) { // Handle macOS fullscreen and extend-to-title changes. window->connect("titlebar_changed", callable_mp(this, &EditorNode::_titlebar_resized)); + window->set_theme(theme); } OS::get_singleton()->set_low_processor_usage_mode_sleep_usec(int(EDITOR_GET("interface/editor/low_processor_mode_sleep_usec"))); @@ -695,6 +696,7 @@ void EditorNode::_notification(int p_what) { theme_base->set_theme(theme); gui_base->set_theme(theme); + get_window()->set_theme(theme); gui_base->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("Background"), SNAME("EditorStyles"))); scene_root_parent->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("Content"), SNAME("EditorStyles"))); |