Skip to content

Commit 459cb33

Browse files
Android Editor: Set the window color to match background color
1 parent 0ad2324 commit 459cb33

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

editor/editor_node.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,9 @@ void EditorNode::_update_theme(bool p_skip_creation) {
690690
editor_dock_manager->update_tab_styles();
691691
editor_dock_manager->update_docks_menu();
692692
editor_dock_manager->set_tab_icon_max_width(theme->get_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
693+
#ifdef ANDROID_ENABLED
694+
DisplayServer::get_singleton()->window_set_color(theme->get_color(SNAME("background"), EditorStringName(Editor)));
695+
#endif
693696
}
694697

695698
Ref<Texture2D> EditorNode::_get_editor_theme_native_menu_icon(const StringName &p_name, bool p_global_menu, bool p_dark_mode) const {

editor/project_manager/project_manager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ void ProjectManager::_update_theme(bool p_skip_creation) {
297297
asset_library->add_theme_style_override(SceneStringName(panel), memnew(StyleBoxEmpty));
298298
}
299299
}
300+
#ifdef ANDROID_ENABLED
301+
DisplayServer::get_singleton()->window_set_color(theme->get_color(SNAME("background"), EditorStringName(Editor)));
302+
#endif
300303
}
301304

302305
Button *ProjectManager::_add_main_view(MainViewTab p_id, const String &p_name, const Ref<Texture2D> &p_icon, Control *p_view_control) {

0 commit comments

Comments
 (0)