From cec1f77e6cbbc7d61e3a71dc54dbfd052b0f9e56 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 8 Feb 2023 13:59:09 +0900 Subject: [PATCH] Fix glow flash occurring after releasing mouse and adjust transition slightly --- osu.Game/Graphics/UserInterface/ShearedNub.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/ShearedNub.cs b/osu.Game/Graphics/UserInterface/ShearedNub.cs index 390d6ff9be..3a09fd7445 100644 --- a/osu.Game/Graphics/UserInterface/ShearedNub.cs +++ b/osu.Game/Graphics/UserInterface/ShearedNub.cs @@ -58,7 +58,7 @@ namespace osu.Game.Graphics.UserInterface private void load(OverlayColourProvider? colourProvider, OsuColour colours) { AccentColour = colourProvider?.Highlight1 ?? colours.Pink; - GlowingAccentColour = colourProvider?.Highlight1.Lighten(0.2f) ?? colours.PinkLighter; + GlowingAccentColour = colourProvider?.Highlight1.Lighten(0.4f) ?? colours.PinkLighter; GlowColour = colourProvider?.Highlight1 ?? colours.PinkLighter; main.EdgeEffect = new EdgeEffectParameters @@ -84,11 +84,14 @@ namespace osu.Game.Graphics.UserInterface get => glowing; set { + if (glowing == value) + return; + glowing = value; if (value) { - main.FadeColour(GlowingAccentColour.Lighten(0.5f), 40, Easing.OutQuint) + main.FadeColour(GlowingAccentColour.Lighten(0.1f), 40, Easing.OutQuint) .Then() .FadeColour(GlowingAccentColour, 800, Easing.OutQuint);