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

Use FillFlowContainer instead of GridContainer for drawable room background gradient

This commit is contained in:
Joseph Madamba 2023-06-12 23:30:08 -07:00
parent af3fbdbfbe
commit a5c3c9a93f
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

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