1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Update button colours

This commit is contained in:
Andrei Zavatski 2020-10-28 01:48:24 +03:00
parent b4ec3b9fef
commit fd11346a28

View File

@ -67,10 +67,10 @@ namespace osu.Game.Overlays.BeatmapListing
private void updateState()
{
text.FadeColour(Active.Value ? Color4.White : getStateColour(), 200, Easing.OutQuint);
text.FadeColour(IsHovered ? colourProvider.Light1 : getStateColour(), 200, Easing.OutQuint);
text.Font = text.Font.With(weight: Active.Value ? FontWeight.SemiBold : FontWeight.Regular);
}
private Color4 getStateColour() => IsHovered ? colourProvider.Light1 : colourProvider.Light3;
private Color4 getStateColour() => Active.Value ? colourProvider.Content1 : colourProvider.Light2;
}
}