Remove weird method

This commit is contained in:
Bartłomiej Dach 2024-11-04 12:18:03 +01:00
parent cb833007e0
commit e064965281
No known key found for this signature in database
2 changed files with 6 additions and 11 deletions

View File

@ -5,6 +5,7 @@
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Input.Events;
using osu.Framework.Localisation;
@ -14,6 +15,7 @@
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays.Notifications;
using osu.Game.Resources.Localisation.Web;
using SharpCompress;
namespace osu.Game.Overlays.Profile.Header.Components
{
@ -186,21 +188,20 @@ private void updateColor()
case FriendStatus.None:
IdleColour = colourProvider.Background6;
HoverColour = colourProvider.Background5;
SetBackgroundColour(colourProvider.Background6, 200);
break;
case FriendStatus.NotMutual:
IdleColour = colour.Green.Opacity(0.7f);
HoverColour = IdleColour.Lighten(0.05f);
SetBackgroundColour(IdleColour, 200);
HoverColour = IdleColour.Lighten(0.1f);
break;
case FriendStatus.Mutual:
IdleColour = colour.Pink.Opacity(0.7f);
HoverColour = IdleColour.Lighten(0.05f);
SetBackgroundColour(colour.Pink.Opacity(0.7f), 200);
HoverColour = IdleColour.Lighten(0.1f);
break;
}
EffectTargets.ForEach(d => d.FadeColour(IsHovered ? HoverColour : IdleColour, FADE_DURATION, Easing.OutQuint));
}
private enum FriendStatus

View File

@ -4,7 +4,6 @@
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics.Containers;
@ -49,11 +48,6 @@ protected ProfileHeaderButton()
});
}
protected void SetBackgroundColour(ColourInfo colorInfo, double duration = 0)
{
background.FadeColour(colorInfo, duration);
}
protected void ShowLoadingLayer()
{
loading.Show();