1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 18:07:24 +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[] 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, RelativeSizeAxes = Axes.Both,
Children = new Drawable[] Children = new Drawable[]
{ {
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4Extensions.FromHex(@"#27302E"),
},
new OnlinePlayBackgroundSprite(BeatmapSetCoverType.List) new OnlinePlayBackgroundSprite(BeatmapSetCoverType.List)
{ {
RelativeSizeAxes = Axes.Both RelativeSizeAxes = Axes.Both
}, },
}
},
new Container new Container
{ {
Name = @"Room content", Name = @"Room content",
@ -284,8 +292,6 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
}, },
}, },
}, },
}
},
new StatusColouredContainer(transition_duration) new StatusColouredContainer(transition_duration)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,