mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Android Editor: Set the window color to match background color
This commit is contained in:
parent
0ad232423d
commit
459cb33abc
2 changed files with 6 additions and 0 deletions
|
@ -690,6 +690,9 @@ void EditorNode::_update_theme(bool p_skip_creation) {
|
||||||
editor_dock_manager->update_tab_styles();
|
editor_dock_manager->update_tab_styles();
|
||||||
editor_dock_manager->update_docks_menu();
|
editor_dock_manager->update_docks_menu();
|
||||||
editor_dock_manager->set_tab_icon_max_width(theme->get_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
|
editor_dock_manager->set_tab_icon_max_width(theme->get_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
|
||||||
|
#ifdef ANDROID_ENABLED
|
||||||
|
DisplayServer::get_singleton()->window_set_color(theme->get_color(SNAME("background"), EditorStringName(Editor)));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<Texture2D> EditorNode::_get_editor_theme_native_menu_icon(const StringName &p_name, bool p_global_menu, bool p_dark_mode) const {
|
Ref<Texture2D> EditorNode::_get_editor_theme_native_menu_icon(const StringName &p_name, bool p_global_menu, bool p_dark_mode) const {
|
||||||
|
|
|
@ -297,6 +297,9 @@ void ProjectManager::_update_theme(bool p_skip_creation) {
|
||||||
asset_library->add_theme_style_override(SceneStringName(panel), memnew(StyleBoxEmpty));
|
asset_library->add_theme_style_override(SceneStringName(panel), memnew(StyleBoxEmpty));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef ANDROID_ENABLED
|
||||||
|
DisplayServer::get_singleton()->window_set_color(theme->get_color(SNAME("background"), EditorStringName(Editor)));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Button *ProjectManager::_add_main_view(MainViewTab p_id, const String &p_name, const Ref<Texture2D> &p_icon, Control *p_view_control) {
|
Button *ProjectManager::_add_main_view(MainViewTab p_id, const String &p_name, const Ref<Texture2D> &p_icon, Control *p_view_control) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue