Merge pull request #114394 from passivestar/editor-inspector-array-bg

Fix background color of EditorInspectorArray
This commit is contained in:
Rémi Verschelde
2026-01-01 16:47:23 +01:00
3 changed files with 10 additions and 4 deletions

View File

@@ -2134,6 +2134,9 @@ void ThemeClassic::populate_editor_styles(const Ref<EditorTheme> &p_theme, Edito
category_bg->set_content_margin_all(0);
p_theme->set_stylebox("bg", "EditorInspectorCategory", category_bg);
// EditorInspectorArray.
p_theme->set_color("bg", "EditorInspectorArray", p_config.dark_color_1);
p_theme->set_constant("inspector_margin", EditorStringName(Editor), 12 * EDSCALE);
// Colored EditorProperty.

View File

@@ -2201,6 +2201,9 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editor
}
p_theme->set_stylebox("bg", "EditorInspectorCategory", category_bg);
// EditorInspectorArray.
p_theme->set_color("bg", "EditorInspectorArray", p_config.surface_base_color);
p_theme->set_constant("inspector_margin", EditorStringName(Editor), 12 * EDSCALE);
// Colored EditorProperty.