Merge pull request #83447 from raulsntos/editor-iconography-2

Set `icon_max_width` in the ConnectionsDock tree
This commit is contained in:
Rémi Verschelde 2023-10-16 18:45:38 +02:00
commit 8ac05d3cb6
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1279,6 +1279,8 @@ void ConnectionsDock::_notification(int p_what) {
slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_EDIT), get_editor_theme_icon(SNAME("Edit")));
slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_GO_TO_METHOD), get_editor_theme_icon(SNAME("ArrowRight")));
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)));
} break;
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {