Tweak layout of column display for better spacing

This commit is contained in:
Bartłomiej Dach 2022-02-20 12:18:59 +01:00
parent 53e8072632
commit a80b4334ff
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -108,9 +108,8 @@ namespace osu.Game.Overlays.Mods
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
RowDimensions = new[] RowDimensions = new[]
{ {
new Dimension(GridSizeMode.Absolute, 50), new Dimension(GridSizeMode.AutoSize),
new Dimension(), new Dimension()
new Dimension(GridSizeMode.Absolute, 10)
}, },
Content = new[] Content = new[]
{ {
@ -118,7 +117,7 @@ namespace osu.Game.Overlays.Mods
{ {
controlContainer = new Container controlContainer = new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.X,
Padding = new MarginPadding { Horizontal = 20 } Padding = new MarginPadding { Horizontal = 20 }
} }
}, },
@ -133,14 +132,10 @@ namespace osu.Game.Overlays.Mods
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Spacing = new Vector2(0, 10), Spacing = new Vector2(0, 10),
Padding = new MarginPadding Padding = new MarginPadding(10)
{ }
Horizontal = 10
},
} }
} }
},
new[] { Empty() }
} }
} }
} }
@ -161,6 +156,12 @@ namespace osu.Game.Overlays.Mods
LabelText = "Enable All", LabelText = "Enable All",
Shear = new Vector2(-ModPanel.SHEAR_X, 0) Shear = new Vector2(-ModPanel.SHEAR_X, 0)
}); });
panelFlow.Padding = new MarginPadding
{
Top = 0,
Bottom = 10,
Horizontal = 10
};
} }
} }