1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:02:55 +08:00

Use property instead of function to set text size

This commit is contained in:
Andrei Zavatski 2020-02-17 00:08:28 +03:00
parent e62fec58c1
commit c85a8a14cc
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ namespace osu.Game.Overlays.BeatmapListing
protected class FilterTabItem : TabItem<T>
{
protected virtual float TextSize() => 13;
protected virtual float TextSize => 13;
[Resolved]
private OverlayColourProvider colourProvider { get; set; }
@ -55,7 +55,7 @@ namespace osu.Game.Overlays.BeatmapListing
{
text = new OsuSpriteText
{
Font = OsuFont.GetFont(size: TextSize(), weight: FontWeight.Regular),
Font = OsuFont.GetFont(size: TextSize, weight: FontWeight.Regular),
Text = GetText(value)
},
new HoverClickSounds()

View File

@ -16,7 +16,7 @@ namespace osu.Game.Overlays.BeatmapListing
{
}
protected override float TextSize() => 10;
protected override float TextSize => 10;
}
}
}