mirror of https://github.com/ppy/osu
Fix chat message style for non action messages
This commit is contained in:
parent
dce577f92a
commit
3e8941f8e1
|
@ -213,7 +213,11 @@ private void updateMessageContent()
|
|||
contentFlow.Clear();
|
||||
if (message.IsAction)
|
||||
contentFlow.AddText("[", sprite => sprite.Padding = new MarginPadding { Right = action_padding });
|
||||
contentFlow.AddText(message.Content, sprite => sprite.Font = @"Exo2.0-MediumItalic" );
|
||||
contentFlow.AddText(message.Content, sprite =>
|
||||
{
|
||||
if (message.IsAction)
|
||||
sprite.Font = @"Exo2.0-MediumItalic";
|
||||
});
|
||||
if (message.IsAction)
|
||||
contentFlow.AddText("]", sprite => sprite.Padding = new MarginPadding { Left = action_padding });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue