Change return type of CreateDaySeparator to Drawable

This commit is contained in:
Jai Sharma 2022-05-07 22:23:46 +01:00
parent bec28c5b28
commit f4acfbd0df
3 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ namespace osu.Game.Online.Chat
protected override ChatLine CreateChatLine(Message m) => CreateChatLineAction(m);
protected override DaySeparator CreateDaySeparator(DateTimeOffset time) => new DaySeparator(time)
protected override Drawable CreateDaySeparator(DateTimeOffset time) => new DaySeparator(time)
{
TextSize = 14,
Colour = daySepColour,

View File

@ -121,7 +121,7 @@ namespace osu.Game.Overlays.Chat
protected virtual ChatLine CreateChatLine(Message m) => new ChatLine(m);
protected virtual DaySeparator CreateDaySeparator(DateTimeOffset time) => new DaySeparator(time)
protected virtual Drawable CreateDaySeparator(DateTimeOffset time) => new DaySeparator(time)
{
Colour = colours.ChatBlue.Lighten(0.7f),
Margin = new MarginPadding { Vertical = 10 },

View File

@ -326,7 +326,7 @@ namespace osu.Game.Overlays
ChatLineFlow.Padding = new MarginPadding(0);
}
protected override DaySeparator CreateDaySeparator(DateTimeOffset time) => new DaySeparator(time)
protected override Drawable CreateDaySeparator(DateTimeOffset time) => new DaySeparator(time)
{
Colour = Colour4.White,
Margin = new MarginPadding { Vertical = 10 },