Fix rounded buttons not allowing custom colour specifications

This commit is contained in:
Dean Herbert 2022-04-27 20:18:46 +09:00
parent 973dd4bfa9
commit b424d20f26
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays;
using osuTK.Graphics;
namespace osu.Game.Graphics.UserInterfaceV2
{
@ -28,7 +29,8 @@ public override float Height
[BackgroundDependencyLoader(true)]
private void load([CanBeNull] OverlayColourProvider overlayColourProvider, OsuColour colours)
{
BackgroundColour = overlayColourProvider?.Highlight1 ?? colours.Blue3;
if (BackgroundColour == Color4.White)
BackgroundColour = overlayColourProvider?.Highlight1 ?? colours.Blue3;
}
protected override void LoadComplete()