mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
simplify string formatting and fix color
This commit is contained in:
parent
6278338448
commit
b2fbeab773
@ -126,10 +126,8 @@ namespace osu.Game.Graphics
|
||||
[BackgroundDependencyLoader]
|
||||
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)
|
||||
// If above is fixed, this should use OverlayColourProvider
|
||||
background.Colour = colours.Gray1;
|
||||
timeText.Colour = colours.GreyCyanLighter;
|
||||
background.Colour = colours.GreySeafoamDarker;
|
||||
timeText.Colour = colours.BlueLighter;
|
||||
}
|
||||
|
||||
protected override void PopIn() => this.FadeIn(200, Easing.OutQuint);
|
||||
@ -140,8 +138,8 @@ namespace osu.Game.Graphics
|
||||
if (!(content is DateTimeOffset date))
|
||||
return false;
|
||||
|
||||
dateText.Text = string.Format($"{date:d MMMM yyyy}") + " ";
|
||||
timeText.Text = string.Format($"{date:hh:mm:ss \"UTC\"z}");
|
||||
dateText.Text = $"{date:d MMMM yyyy} ";
|
||||
timeText.Text = $"{date:hh:mm:ss \"UTC\"z}";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user