1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 23:12:56 +08:00

Add background to disclaimers

This commit is contained in:
Bartłomiej Dach 2024-03-15 11:31:45 +01:00
parent 87682008fd
commit 51568ba06a
No known key found for this signature in database

View File

@ -24,12 +24,26 @@ namespace osu.Game.Screens.Play
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours) private void load(OsuColour colours, OverlayColourProvider colourProvider)
{ {
Width = SettingsToolboxGroup.CONTAINER_WIDTH; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
Masking = true;
CornerRadius = 5;
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background4,
},
new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding(10),
Children = new Drawable[]
{ {
new Circle new Circle
{ {
@ -61,6 +75,8 @@ namespace osu.Game.Screens.Play
} }
} }
} }
}
}
}; };
} }
} }