Fix chat message style for non action messages

This commit is contained in:
MrTheMake 2017-09-22 11:35:07 +02:00
parent dce577f92a
commit 3e8941f8e1
1 changed files with 5 additions and 1 deletions

View File

@ -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 });
}