Adjust font weighting on selection

This commit is contained in:
Dean Herbert 2022-01-04 18:19:23 +09:00
parent 5a11ee7810
commit e75c9519f3
1 changed files with 2 additions and 0 deletions

View File

@ -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()