Merge pull request #55451 from Calinou/scene-tree-dock-fix-icon-theme-change

Fix scene tree dock icon not switching colors on theme change
This commit is contained in:
Rémi Verschelde 2021-11-29 23:48:20 +01:00 committed by GitHub
commit 03cfdf8cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1306,6 +1306,7 @@ void SceneTreeDock::_notification(int p_what) {
button_instance->set_icon(get_theme_icon(SNAME("Instance"), SNAME("EditorIcons")));
button_create_script->set_icon(get_theme_icon(SNAME("ScriptCreate"), SNAME("EditorIcons")));
button_detach_script->set_icon(get_theme_icon(SNAME("ScriptRemove"), SNAME("EditorIcons")));
button_tree_menu->set_icon(get_theme_icon(SNAME("GuiTabMenuHl"), SNAME("EditorIcons")));
button_2d->set_icon(get_theme_icon(SNAME("Node2D"), SNAME("EditorIcons")));
button_3d->set_icon(get_theme_icon(SNAME("Node3D"), SNAME("EditorIcons")));
button_ui->set_icon(get_theme_icon(SNAME("Control"), SNAME("EditorIcons")));