1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:52:55 +08:00

Use anchor instead of FillFlowContainer

This commit is contained in:
Joseph Madamba 2023-06-13 00:09:58 -07:00
parent a5c3c9a93f
commit 0adb399ea8
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -103,25 +103,19 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
CornerRadius = CORNER_RADIUS, CornerRadius = CORNER_RADIUS,
Children = new Drawable[] Children = new Drawable[]
{ {
new FillFlowContainer new Box
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal, Colour = colours.Background5,
Children = new Drawable[] Width = 0.2f,
{ },
new Box new Box
{ {
RelativeSizeAxes = Axes.Both, Anchor = Anchor.TopRight,
Colour = colours.Background5, Origin = Anchor.TopRight,
Width = 0.2f, RelativeSizeAxes = Axes.Both,
}, Colour = ColourInfo.GradientHorizontal(colours.Background5, colours.Background5.Opacity(0.3f)),
new Box Width = 0.8f,
{
RelativeSizeAxes = Axes.Both,
Colour = ColourInfo.GradientHorizontal(colours.Background5, colours.Background5.Opacity(0.3f)),
Width = 0.8f,
},
},
}, },
new Container new Container
{ {