1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 18:27:26 +08:00

Merge pull request #29467 from EVAST9919/online-bg-box

Remove extra box in `OnlinePlayBackgroundScreen`
This commit is contained in:
Dan Balasescu 2024-08-17 10:34:34 +09:00 committed by GitHub
commit ba4956ace4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);