1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 09:37:23 +08:00

Apply suggetsted changes

This commit is contained in:
Andrei Zavatski 2019-09-10 16:36:05 +03:00
parent 6c2db8e4b0
commit 1969c5b89b

View File

@ -9,7 +9,6 @@ using osu.Game.Overlays;
using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Shapes;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Framework.Extensions.Color4Extensions;
namespace osu.Game.Tests.Visual.Online namespace osu.Game.Tests.Visual.Online
{ {
@ -24,18 +23,20 @@ namespace osu.Game.Tests.Visual.Online
public TestSceneRankingsScopeSelector() public TestSceneRankingsScopeSelector()
{ {
Bindable<RankingsScope> scope = new Bindable<RankingsScope>(); var scope = new Bindable<RankingsScope>();
Add(background = new Box AddRange(new Drawable[]
{ {
RelativeSizeAxes = Axes.Both background = new Box
}); {
RelativeSizeAxes = Axes.Both
Add(new RankingsScopeSelector },
{ new RankingsScopeSelector
Anchor = Anchor.Centre, {
Origin = Anchor.Centre, Anchor = Anchor.Centre,
Current = { BindTarget = scope } Origin = Anchor.Centre,
Current = { BindTarget = scope }
}
}); });
AddStep(@"Select country", () => scope.Value = RankingsScope.Country); AddStep(@"Select country", () => scope.Value = RankingsScope.Country);
@ -47,7 +48,7 @@ namespace osu.Game.Tests.Visual.Online
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours) private void load(OsuColour colours)
{ {
background.Colour = colours.Yellow.Opacity(50); background.Colour = colours.GreySeafoam;
} }
} }
} }