1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-27 17:32:55 +08:00

Apply suggestions

This commit is contained in:
Andrei Zavatski 2020-02-23 01:22:37 +03:00
parent db7f29cc0e
commit 74c7e29108
2 changed files with 4 additions and 3 deletions

View File

@ -85,7 +85,7 @@ namespace osu.Game.Overlays.Changelog
Origin = Anchor.CentreRight, Origin = Anchor.CentreRight,
Size = new Vector2(10), Size = new Vector2(10),
Icon = entry.Type == ChangelogEntryType.Fix ? FontAwesome.Solid.Check : FontAwesome.Solid.Plus, Icon = entry.Type == ChangelogEntryType.Fix ? FontAwesome.Solid.Check : FontAwesome.Solid.Plus,
Colour = entryColour.Darken(0.7f), Colour = entryColour.Opacity(0.5f),
Margin = new MarginPadding { Right = 5 }, Margin = new MarginPadding { Right = 5 },
}, },
title = new LinkFlowContainer title = new LinkFlowContainer
@ -123,10 +123,11 @@ namespace osu.Game.Overlays.Changelog
}); });
} }
title.AddText(" by ", t => title.AddText("by ", t =>
{ {
t.Font = fontMedium.With(italics: true); t.Font = fontMedium.With(italics: true);
t.Colour = entryColour; t.Colour = entryColour;
t.Padding = new MarginPadding { Left = 10 };
}); });
if (entry.GithubUser.UserId != null) if (entry.GithubUser.UserId != null)

View File

@ -69,7 +69,7 @@ namespace osu.Game.Overlays.Changelog
}, },
new OsuSpriteText new OsuSpriteText
{ {
Text = stream.LatestBuild.Users > 0 ? $"{stream.LatestBuild.Users:N0} {"user".Pluralize(stream.LatestBuild.Users == 1)} online" : null, Text = stream.LatestBuild.Users > 0 ? $"{"user".ToQuantity(stream.LatestBuild.Users, "N0")} online" : null,
Font = OsuFont.GetFont(size: 10), Font = OsuFont.GetFont(size: 10),
Colour = colourProvider.Foreground1 Colour = colourProvider.Foreground1
}, },