1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 16:07:25 +08:00

Add default background to panel, reduce nesting

This commit is contained in:
smoogipoo 2021-07-14 16:56:39 +09:00
parent e0c61c24b1
commit da3b40a4dd

View File

@ -126,15 +126,23 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
{
Children = new Drawable[]
{
new Container
// This resolves internal 1px gaps due to applying the (parenting) corner radius and masking across multiple filling background sprites.
new BufferedContainer
{
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4Extensions.FromHex(@"#27302E"),
},
new OnlinePlayBackgroundSprite(BeatmapSetCoverType.List)
{
RelativeSizeAxes = Axes.Both
},
}
},
new Container
{
Name = @"Room content",
@ -284,8 +292,6 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
},
},
},
}
},
new StatusColouredContainer(transition_duration)
{
RelativeSizeAxes = Axes.Both,