Skip to content

Commit

Permalink
Fix ruleset icons overflowing from settings footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Joehuu committed Jul 24, 2021
1 parent 6621da6 commit dce4791
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions osu.Game/Overlays/Settings/SettingsFooter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ private void load(OsuGameBase game, OsuColour colours, RulesetStore rulesets)
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Direction = FillDirection.Vertical;
Padding = new MarginPadding { Top = 20, Bottom = 30 };
Padding = new MarginPadding { Top = 20, Bottom = 30, Horizontal = SettingsPanel.CONTENT_MARGINS };

var modes = new List<Drawable>();

foreach (var ruleset in rulesets.AvailableRulesets)
{
var icon = new ConstrainedIconContainer
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Icon = ruleset.CreateInstance().CreateIcon(),
Colour = Color4.Gray,
Size = new Vector2(20),
Expand All @@ -47,7 +49,8 @@ private void load(OsuGameBase game, OsuColour colours, RulesetStore rulesets)
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Direction = FillDirection.Full,
AutoSizeAxes = Axes.Both,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Children = modes,
Spacing = new Vector2(5),
Padding = new MarginPadding { Bottom = 10 },
Expand Down

0 comments on commit dce4791

Please sign in to comment.