@@ -315,6 +315,7 @@ void ConnectDialog::_create_method_tree_items(const List<MethodInfo> &p_methods,
315315 for (const MethodInfo &mi : p_methods) {
316316 TreeItem *method_item = method_tree->create_item (p_parent_item);
317317 method_item->set_text (0 , get_signature (mi));
318+ method_item->set_custom_font (0 , get_theme_font (SNAME (" source" ), EditorStringName (EditorFonts)));
318319 method_item->set_metadata (0 , mi.name );
319320 }
320321}
@@ -535,6 +536,9 @@ void ConnectDialog::_notification(int p_what) {
535536 case NOTIFICATION_THEME_CHANGED: {
536537 method_search->set_right_icon (get_editor_theme_icon (" Search" ));
537538 open_method_tree->set_button_icon (get_editor_theme_icon (" Edit" ));
539+
540+ from_signal->add_theme_font_override (SceneStringName (font), get_theme_font (SNAME (" source" ), EditorStringName (EditorFonts)));
541+ dst_method->add_theme_font_override (SceneStringName (font), get_theme_font (SNAME (" source" ), EditorStringName (EditorFonts)));
538542 } break ;
539543 }
540544}
@@ -1641,6 +1645,7 @@ void ConnectionsDock::update_tree() {
16411645 TreeItem *signal_item = tree->create_item (section_item);
16421646 String signame = connect_dialog->get_signature (mi, &argnames);
16431647 signal_item->set_text (0 , signame);
1648+ signal_item->set_custom_font (0 , get_theme_font (SNAME (" source" ), EditorStringName (EditorFonts)));
16441649
16451650 if (signame == prev_selected) {
16461651 signal_item->select (0 );
@@ -1699,6 +1704,7 @@ void ConnectionsDock::update_tree() {
16991704 connection_item->set_text (0 , path);
17001705 connection_item->set_metadata (0 , connection);
17011706 connection_item->set_icon (0 , get_editor_theme_icon (SNAME (" Slot" )));
1707+ connection_item->set_custom_font (0 , get_theme_font (SNAME (" source" ), EditorStringName (EditorFonts)));
17021708
17031709 if (_is_connection_inherited (connection)) {
17041710 // The scene inherits this connection.
0 commit comments