Skip to content

Commit

Permalink
Merge pull request #93868 from timothyqiu/node-dock-theme-update
Browse files Browse the repository at this point in the history
Update Node dock when theme changes
  • Loading branch information
akien-mga committed Jul 4, 2024
2 parents 01c24ff + 7187a82 commit de28ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions editor/groups_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit de28ac2

Please sign in to comment.