1
0
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:
Derrick Timmermans 2020-11-22 16:53:27 +01:00
parent 417d6d4915
commit cc33b0f2c6
No known key found for this signature in database
GPG Key ID: 8681B60806EF4A17
3 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -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;
} }
} }
} }

View File

@ -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