1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:02:55 +08:00

use OverlayColourProvider for nub colors when possible

This commit is contained in:
Gabe Livengood 2022-07-11 16:36:17 -04:00
parent 84002aefae
commit 7d26f178c6
No known key found for this signature in database
GPG Key ID: 70321B78DAECE683

View File

@ -6,6 +6,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays;
using osuTK.Graphics;
namespace osu.Game.Graphics.UserInterfaceV2
@ -22,9 +23,12 @@ namespace osu.Game.Graphics.UserInterfaceV2
Origin = Anchor.CentreLeft;
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
[BackgroundDependencyLoader(true)]
private void load(OverlayColourProvider? overlayColourProvider, OsuColour colours)
{
if (overlayColourProvider != null)
return;
Nub.AccentColour = colours.GreySeaFoamLighter;
Nub.GlowingAccentColour = Color4.White;
Nub.GlowColour = Color4.White;