mirror of https://github.com/ppy/osu
Adjust font weighting on selection
This commit is contained in:
parent
5a11ee7810
commit
e75c9519f3
|
@ -54,7 +54,9 @@ protected override void LoadComplete()
|
|||
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