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:
parent
a71e410e5d
commit
54a3705bdb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user