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
1 changed files with 34 additions and 18 deletions

View File

@ -24,12 +24,26 @@ public PlayerLoaderDisclaimer(LocalisableString title, LocalisableString content
} }
[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 @@ private void load(OsuColour colours)
} }
} }
} }
}
}
}; };
} }
} }