mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
use OverlayColourProvider
for nub colors when possible
This commit is contained in:
parent
84002aefae
commit
7d26f178c6
@ -6,6 +6,7 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Graphics.Cursor;
|
using osu.Framework.Graphics.Cursor;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
|
using osu.Game.Overlays;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Graphics.UserInterfaceV2
|
namespace osu.Game.Graphics.UserInterfaceV2
|
||||||
@ -22,9 +23,12 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
|||||||
Origin = Anchor.CentreLeft;
|
Origin = Anchor.CentreLeft;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(OsuColour colours)
|
private void load(OverlayColourProvider? overlayColourProvider, OsuColour colours)
|
||||||
{
|
{
|
||||||
|
if (overlayColourProvider != null)
|
||||||
|
return;
|
||||||
|
|
||||||
Nub.AccentColour = colours.GreySeaFoamLighter;
|
Nub.AccentColour = colours.GreySeaFoamLighter;
|
||||||
Nub.GlowingAccentColour = Color4.White;
|
Nub.GlowingAccentColour = Color4.White;
|
||||||
Nub.GlowColour = Color4.White;
|
Nub.GlowColour = Color4.White;
|
||||||
|
Loading…
Reference in New Issue
Block a user