mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #112504 from passivestar/inspector-margin
Reduce outer inspector margins
This commit is contained in:
commit
3d64c33edb
1 changed files with 1 additions and 3 deletions
|
|
@ -1943,9 +1943,7 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editor
|
|||
// Editor inspector.
|
||||
{
|
||||
// Panel.
|
||||
Ref<StyleBoxEmpty> editor_inspector_panel = p_config.base_empty_style->duplicate();
|
||||
editor_inspector_panel->set_content_margin_all(p_config.base_margin * 2 * EDSCALE);
|
||||
p_theme->set_stylebox(SceneStringName(panel), "EditorInspector", editor_inspector_panel);
|
||||
p_theme->set_stylebox(SceneStringName(panel), "EditorInspector", p_config.base_empty_style);
|
||||
|
||||
// Vertical separation between inspector categories and sections.
|
||||
p_theme->set_constant("v_separation", "EditorInspector", Math::ceil(p_config.base_margin * 0.5 * EDSCALE));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue