1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-16 08:42:55 +08:00

Remove font weight changes on selection

This commit is contained in:
Andrei Zavatski 2020-02-16 16:26:18 +03:00
parent a71e410e5d
commit 54a3705bdb

View File

@ -87,11 +87,7 @@ namespace osu.Game.Overlays.BeatmapListing
protected override void OnDeactivated() => updateState();
private void updateState()
{
text.Font = text.Font.With(weight: Active.Value ? FontWeight.Medium : FontWeight.Regular);
text.FadeColour(Active.Value ? Color4.White : getStateColour(), 200, Easing.OutQuint);
}
private void updateState() => text.FadeColour(Active.Value ? Color4.White : getStateColour(), 200, Easing.OutQuint);
private Color4 getStateColour() => IsHovered ? colourProvider.Light1 : colourProvider.Light3;
}