mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Adjust font weighting on selection
This commit is contained in:
parent
5a11ee7810
commit
e75c9519f3
@ -54,7 +54,9 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
private void onSelectedChanged(ValueChangedEvent<bool> selected)
|
||||
{
|
||||
Background.FadeTo(selected.NewValue ? 1 : 0, DURATION, Easing.OutQuint);
|
||||
|
||||
text.FadeColour(selected.NewValue ? ColourProvider.Dark4 : ColourProvider.Light3, DURATION, Easing.OutQuint);
|
||||
text.Font = text.Font.With(weight: IsHovered ? FontWeight.SemiBold : FontWeight.Regular);
|
||||
}
|
||||
|
||||
protected override void UpdateHoverState()
|
||||
|
Loading…
Reference in New Issue
Block a user