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

View File

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