Skip to content

Commit b066dd9

Browse files
committed
Reduce outer inspector margins
1 parent cb3af5a commit b066dd9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

editor/themes/theme_modern.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,9 +1870,7 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editor
18701870
// Editor inspector.
18711871
{
18721872
// Panel.
1873-
Ref<StyleBoxEmpty> editor_inspector_panel = p_config.base_empty_style->duplicate();
1874-
editor_inspector_panel->set_content_margin_all(p_config.base_margin * 2 * EDSCALE);
1875-
p_theme->set_stylebox(SceneStringName(panel), "EditorInspector", editor_inspector_panel);
1873+
p_theme->set_stylebox(SceneStringName(panel), "EditorInspector", p_config.base_empty_style);
18761874

18771875
// Vertical separation between inspector categories and sections.
18781876
p_theme->set_constant("v_separation", "EditorInspector", Math::ceil(p_config.base_margin * 0.5 * EDSCALE));

0 commit comments

Comments
 (0)