From be3b88a5c3ca733f636b1f090cc1589172f67da3 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 15 Oct 2021 11:48:19 +0900 Subject: [PATCH] Adjust glow to look good --- osu.Game/Graphics/UserInterface/Nub.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/Nub.cs b/osu.Game/Graphics/UserInterface/Nub.cs index 7f504fcae3..93da312e64 100644 --- a/osu.Game/Graphics/UserInterface/Nub.cs +++ b/osu.Game/Graphics/UserInterface/Nub.cs @@ -26,7 +26,7 @@ public class Nub : CircularContainer, IHasCurrentValue, IHasAccentColour private const float border_width = 3; - private const double animate_in_duration = 150; + private const double animate_in_duration = 200; private const double animate_out_duration = 500; public Nub() @@ -62,14 +62,14 @@ private void load([CanBeNull] OverlayColourProvider colourProvider, OsuColour co { AccentColour = colourProvider?.Highlight1 ?? colours.Pink; GlowingAccentColour = colourProvider?.Highlight1.Lighten(0.2f) ?? colours.PinkLighter; - GlowColour = colourProvider?.Dark3 ?? colours.PinkDarker; + GlowColour = colourProvider?.Light4 ?? colours.PinkDarker; EdgeEffect = new EdgeEffectParameters { Colour = GlowColour.Opacity(0), Type = EdgeEffectType.Glow, Radius = 10, - Roundness = 8, + Roundness = 10, }; } @@ -85,7 +85,7 @@ public bool Glowing if (value) { this.FadeColour(GlowingAccentColour, animate_in_duration, Easing.OutQuint); - FadeEdgeEffectTo(1, animate_in_duration, Easing.OutQuint); + FadeEdgeEffectTo(0.6f, animate_in_duration, Easing.OutQuint); } else {