Adjust date for ChangelogSingleBuild

This commit is contained in:
Andrei Zavatski 2020-02-21 16:55:12 +03:00
parent 3fdf8dc386
commit e9f69d2c23

View File

@ -80,6 +80,8 @@ namespace osu.Game.Overlays.Changelog
{
}
private OsuSpriteText date;
protected override FillFlowContainer CreateHeader()
{
var fill = base.CreateHeader();
@ -89,11 +91,10 @@ namespace osu.Game.Overlays.Changelog
existing.Scale = new Vector2(1.25f);
existing.Action = null;
existing.Add(new OsuSpriteText
existing.Add(date = new OsuSpriteText
{
Text = Build.CreatedAt.Date.ToString("dd MMM yyyy"),
Text = Build.CreatedAt.Date.ToString("dd MMMM yyyy"),
Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 14),
Colour = OsuColour.FromHex(@"FD5"),
Anchor = Anchor.BottomCentre,
Origin = Anchor.TopCentre,
Margin = new MarginPadding { Top = 5 },
@ -113,6 +114,12 @@ namespace osu.Game.Overlays.Changelog
return fill;
}
[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
{
date.Colour = colourProvider.Light1;
}
}
private class NavigationIconButton : IconButton