Recolour RankingsOverlay background

This commit is contained in:
Andrei Zavatski 2020-02-03 21:05:11 +03:00
parent 2a802307e7
commit f7cbb8c1f7
1 changed files with 9 additions and 4 deletions

View File

@ -6,7 +6,6 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using osu.Game.Overlays.Rankings;
using osu.Game.Users;
using osu.Game.Rulesets;
@ -27,6 +26,7 @@ public class RankingsOverlay : FullscreenOverlay
private readonly BasicScrollContainer scrollFlow;
private readonly Container tableContainer;
private readonly DimmedLoadingLayer loading;
private readonly Box background;
private APIRequest lastRequest;
private CancellationTokenSource cancellationToken;
@ -39,10 +39,9 @@ public RankingsOverlay()
{
Children = new Drawable[]
{
new Box
background = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = OsuColour.Gray(0.1f),
RelativeSizeAxes = Axes.Both
},
scrollFlow = new BasicScrollContainer
{
@ -87,6 +86,12 @@ public RankingsOverlay()
};
}
[BackgroundDependencyLoader]
private void load()
{
background.Colour = ColourProvider.Background5;
}
protected override void LoadComplete()
{
Country.BindValueChanged(_ =>