Pārlūkot izejas kodu

Set icon_max_width in the ConnectionsDock tree

Raul Santos 1 gadu atpakaļ
vecāks
revīzija
38f1df15f0
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      editor/connections_dialog.cpp

+ 2 - 0
editor/connections_dialog.cpp

@@ -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: {