1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

simplify string formatting and fix color

This commit is contained in:
Maximilian Junges 2020-02-13 14:07:14 +01:00
parent 6278338448
commit b2fbeab773

View File

@ -126,10 +126,8 @@ namespace osu.Game.Graphics
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours) private void load(OsuColour colours)
{ {
// Temporary colour since it's currently impossible to change it without bugs (see https://github.com/ppy/osu-framework/issues/3231) background.Colour = colours.GreySeafoamDarker;
// If above is fixed, this should use OverlayColourProvider timeText.Colour = colours.BlueLighter;
background.Colour = colours.Gray1;
timeText.Colour = colours.GreyCyanLighter;
} }
protected override void PopIn() => this.FadeIn(200, Easing.OutQuint); protected override void PopIn() => this.FadeIn(200, Easing.OutQuint);
@ -140,8 +138,8 @@ namespace osu.Game.Graphics
if (!(content is DateTimeOffset date)) if (!(content is DateTimeOffset date))
return false; return false;
dateText.Text = string.Format($"{date:d MMMM yyyy}") + " "; dateText.Text = $"{date:d MMMM yyyy} ";
timeText.Text = string.Format($"{date:hh:mm:ss \"UTC\"z}"); timeText.Text = $"{date:hh:mm:ss \"UTC\"z}";
return true; return true;
} }