Rework SpotlightSelector header layout

This commit is contained in:
Andrei Zavatski 2020-07-15 08:27:46 +03:00
parent df9ea5cc2f
commit 0043bd74ba

View File

@ -85,12 +85,18 @@ namespace osu.Game.Overlays.Rankings
Current = Current Current = Current
} }
}, },
new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Children = new Drawable[]
{
new FillFlowContainer new FillFlowContainer
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal, Direction = FillDirection.Horizontal,
Spacing = new Vector2(10, 0), Spacing = new Vector2(10, 0),
Margin = new MarginPadding { Vertical = 5 }, Margin = new MarginPadding { Bottom = 5 },
Children = new Drawable[] Children = new Drawable[]
{ {
startDateColumn = new InfoColumn(@"Start Date"), startDateColumn = new InfoColumn(@"Start Date"),
@ -99,12 +105,7 @@ namespace osu.Game.Overlays.Rankings
participantsColumn = new InfoColumn(@"Participants") participantsColumn = new InfoColumn(@"Participants")
} }
}, },
new Container new RankingsSortTabControl
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Vertical = 20 },
Child = new RankingsSortTabControl
{ {
Anchor = Anchor.CentreRight, Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight, Origin = Anchor.CentreRight,
@ -115,6 +116,7 @@ namespace osu.Game.Overlays.Rankings
} }
} }
} }
}
}); });
} }