From c85a8a14cc629bd919f4c692b9f6eff4eb6093b4 Mon Sep 17 00:00:00 2001 From: Andrei Zavatski Date: Mon, 17 Feb 2020 00:08:28 +0300 Subject: [PATCH] Use property instead of function to set text size --- osu.Game/Overlays/BeatmapListing/BeatmapSearchFilter.cs | 4 ++-- osu.Game/Overlays/BeatmapListing/SmallBeatmapSearchFilter.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game/Overlays/BeatmapListing/BeatmapSearchFilter.cs b/osu.Game/Overlays/BeatmapListing/BeatmapSearchFilter.cs index 57e8282798..825d157918 100644 --- a/osu.Game/Overlays/BeatmapListing/BeatmapSearchFilter.cs +++ b/osu.Game/Overlays/BeatmapListing/BeatmapSearchFilter.cs @@ -40,7 +40,7 @@ namespace osu.Game.Overlays.BeatmapListing protected class FilterTabItem : TabItem { - 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() diff --git a/osu.Game/Overlays/BeatmapListing/SmallBeatmapSearchFilter.cs b/osu.Game/Overlays/BeatmapListing/SmallBeatmapSearchFilter.cs index ca387f08cf..b5d2ad5d4e 100644 --- a/osu.Game/Overlays/BeatmapListing/SmallBeatmapSearchFilter.cs +++ b/osu.Game/Overlays/BeatmapListing/SmallBeatmapSearchFilter.cs @@ -16,7 +16,7 @@ namespace osu.Game.Overlays.BeatmapListing { } - protected override float TextSize() => 10; + protected override float TextSize => 10; } } }