Skip to content

Commit

Permalink
Resolve colour inline
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed May 12, 2022
1 parent 8760e5d commit a35c578
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osu.Game/Online/Chat/StandAloneChatDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,26 +155,26 @@ public class StandAloneDrawableChannel : DrawableChannel
{
public Func<Message, ChatLine> CreateChatLineAction;

private Colour4 daySepColour;
[Resolved]
private OsuColour colours { get; set; }

public StandAloneDrawableChannel(Channel channel)
: base(channel)
{
}

[BackgroundDependencyLoader]
private void load(OsuColour colours)
private void load()
{
ChatLineFlow.Padding = new MarginPadding { Horizontal = 0 };
daySepColour = colours.Yellow;
}

protected override ChatLine CreateChatLine(Message m) => CreateChatLineAction(m);

protected override Drawable CreateDaySeparator(DateTimeOffset time) => new DaySeparator(time)
{
TextSize = 14,
Colour = daySepColour,
Colour = colours.Yellow,
LineHeight = 1,
Padding = new MarginPadding { Horizontal = 10 },
Margin = new MarginPadding { Vertical = 5 },
Expand Down

0 comments on commit a35c578

Please sign in to comment.