Use colour fade transform for selection box controls

To become harminous with the fade transforms of the rotation control
This commit is contained in:
Salman Ahmed
2021-04-25 07:43:56 +03:00
parent 62bcc5f76d
commit ab71782674
3 changed files with 10 additions and 4 deletions

View File

@ -55,7 +55,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected override void UpdateHoverState()
{
base.UpdateHoverState();
icon.Colour = !HandlingMouse && IsHovered ? Color4.White : Color4.Black;
icon.FadeColour(!HandlingMouse && IsHovered ? Color4.White : Color4.Black, TRANSFORM_DURATION, Easing.OutQuint);
}
public string TooltipText { get; }