mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 17:17:24 +08:00
Apply MenuGlow to Visualisation Colour instead of AccentColour
This commit is contained in:
parent
417d6d4915
commit
cc33b0f2c6
@ -20,6 +20,7 @@ using osu.Framework.Audio;
|
|||||||
using osu.Framework.Audio.Track;
|
using osu.Framework.Audio.Track;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Menu
|
namespace osu.Game.Screens.Menu
|
||||||
{
|
{
|
||||||
@ -67,7 +68,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
private int indexOffset;
|
private int indexOffset;
|
||||||
|
|
||||||
public Color4 AccentColour { get; set; }
|
public Color4 AccentColour { get; set; } = Color4.White.Opacity(.2f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The relative movement of bars based on input amplification. Defaults to 1.
|
/// The relative movement of bars based on input amplification. Defaults to 1.
|
||||||
|
@ -28,12 +28,12 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
private void updateColour()
|
private void updateColour()
|
||||||
{
|
{
|
||||||
Color4 defaultColour = Color4.White.Opacity(0.2f);
|
Color4 defaultColour = Color4.White;
|
||||||
|
|
||||||
if (user.Value?.IsSupporter ?? false)
|
if (user.Value?.IsSupporter ?? false)
|
||||||
AccentColour = skin.Value.GetConfig<GlobalSkinColours, Color4>(GlobalSkinColours.MenuGlow)?.Value ?? defaultColour;
|
Colour = skin.Value.GetConfig<GlobalSkinColours, Color4>(GlobalSkinColours.MenuGlow)?.Value ?? defaultColour;
|
||||||
else
|
else
|
||||||
AccentColour = defaultColour;
|
Colour = defaultColour;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Alpha = 0.5f,
|
|
||||||
Size = new Vector2(0.96f)
|
Size = new Vector2(0.96f)
|
||||||
},
|
},
|
||||||
new Container
|
new Container
|
||||||
|
Loading…
Reference in New Issue
Block a user