1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 07:22:55 +08:00

Remove extra box in OnlinePlayBackgroundScreen

This commit is contained in:
Andrei Zavatski 2024-08-17 00:59:44 +03:00
parent e4c1545bf0
commit f74263db81

View File

@ -3,10 +3,8 @@
using System.Threading;
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Online.Rooms;
@ -20,16 +18,6 @@ namespace osu.Game.Screens.OnlinePlay.Components
private CancellationTokenSource? cancellationSource;
private PlaylistItemBackground? background;
protected OnlinePlayBackgroundScreen()
{
AddInternal(new Box
{
RelativeSizeAxes = Axes.Both,
Depth = float.MinValue,
Colour = ColourInfo.GradientVertical(Color4.Black.Opacity(0.9f), Color4.Black.Opacity(0.6f))
});
}
[BackgroundDependencyLoader]
private void load()
{
@ -83,6 +71,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
}
newBackground.Depth = newDepth;
newBackground.Colour = ColourInfo.GradientVertical(new Color4(0.1f, 0.1f, 0.1f, 1f), new Color4(0.4f, 0.4f, 0.4f, 1f));
newBackground.BlurTo(new Vector2(10));
AddInternal(background = newBackground);