mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Adjust font weighting on selection
This commit is contained in:
@ -54,7 +54,9 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
|
|||||||
private void onSelectedChanged(ValueChangedEvent<bool> selected)
|
private void onSelectedChanged(ValueChangedEvent<bool> selected)
|
||||||
{
|
{
|
||||||
Background.FadeTo(selected.NewValue ? 1 : 0, DURATION, Easing.OutQuint);
|
Background.FadeTo(selected.NewValue ? 1 : 0, DURATION, Easing.OutQuint);
|
||||||
|
|
||||||
text.FadeColour(selected.NewValue ? ColourProvider.Dark4 : ColourProvider.Light3, 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()
|
protected override void UpdateHoverState()
|
||||||
|
Reference in New Issue
Block a user