mirror of
https://github.com/ppy/osu.git
synced 2025-02-11 23:03:21 +08:00
Merge pull request #22044 from peppy/filter-tab-item-bold
Make selected tab items more bold (and add underline)
This commit is contained in:
commit
99f2bbe775
@ -81,7 +81,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
||||
protected virtual void UpdateState()
|
||||
{
|
||||
text.FadeColour(IsHovered ? colourProvider.Light1 : GetStateColour(), 200, Easing.OutQuint);
|
||||
text.Font = text.Font.With(weight: Active.Value ? FontWeight.SemiBold : FontWeight.Regular);
|
||||
text.Font = text.Font.With(weight: Active.Value ? FontWeight.Bold : FontWeight.Regular);
|
||||
}
|
||||
|
||||
protected virtual Color4 GetStateColour() => Active.Value ? colourProvider.Content1 : colourProvider.Light2;
|
||||
|
Loading…
Reference in New Issue
Block a user