From 7187a82cfe3be9fc5519f7c70e479f53292d7fea Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 3 Jul 2024 00:15:57 +0800 Subject: [PATCH] Update Node dock when theme changes --- editor/connections_dialog.cpp | 2 ++ editor/groups_editor.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index bfc4d91af7f..eb0ab1174b3 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -1377,6 +1377,8 @@ void ConnectionsDock::_notification(int p_what) { slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_DISCONNECT), get_editor_theme_icon(SNAME("Unlinked"))); tree->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor))); + + update_tree(); } break; case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp index 18ac4074da6..6cfc035fc9f 100644 --- a/editor/groups_editor.cpp +++ b/editor/groups_editor.cpp @@ -369,6 +369,7 @@ void GroupsEditor::_notification(int p_what) { case NOTIFICATION_THEME_CHANGED: { filter->set_right_icon(get_editor_theme_icon("Search")); add->set_icon(get_editor_theme_icon("Add")); + _update_tree(); } break; case NOTIFICATION_VISIBILITY_CHANGED: { if (groups_dirty && is_visible_in_tree()) {