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

use single line if-statement

This commit is contained in:
Max Hübner 2019-07-28 20:36:21 +02:00
parent 262284d095
commit 316b11d08b

View File

@ -205,10 +205,7 @@ namespace osu.Game.Overlays.Chat.Tabs
box.FadeColour(BackgroundActive, TRANSITION_LENGTH, Easing.OutQuint); box.FadeColour(BackgroundActive, TRANSITION_LENGTH, Easing.OutQuint);
highlightBox.FadeIn(TRANSITION_LENGTH, Easing.OutQuint); highlightBox.FadeIn(TRANSITION_LENGTH, Easing.OutQuint);
if (IsBoldWhenActive) if (IsBoldWhenActive) Text.Font = Text.Font.With(weight: FontWeight.Bold);
{
Text.Font = Text.Font.With(weight: FontWeight.Bold);
}
} }
protected virtual void FadeInactive() protected virtual void FadeInactive()