Repository: godotengine/godot (language: cpp)

Issue:
Inconsistent spacing of groups in TileSet inspector
### Tested versions

4.4 beta1

### System information

W10

### Issue description

https://github.com/user-attachments/assets/35f080dd-b32d-4cd0-8b6f-08fbd03079da

All layers except Custom Data have some weird gap, which is also visible when they are expanded.
The categories should have no spacing, but the button inside should have it (Custom Data doesn't space button properly).

### Steps to reproduce

1. Create TileSet
2. Inspect it

### Minimal reproduction project (MRP)

N/A


Discussion / hints:

Fix patch:
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 58b02ed2b8a1..87a7433e8cb9 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -3440,6 +3440,8 @@ void EditorInspector::update_tree() {
 		// Recreate the category vbox if it was reset.
 		if (category_vbox == nullptr) {
 			category_vbox = memnew(VBoxContainer);
+			int separation = get_theme_constant(SNAME("v_separation"), SNAME("EditorInspector"));
+			category_vbox->add_theme_constant_override(SNAME("separation"), separation);
 			category_vbox->hide();
 			main_vbox->add_child(category_vbox);
 		}


Test patch: