Apply review suggestion.

This commit is contained in:
Lucas A 2020-03-04 22:59:48 +01:00
parent ea29f7c344
commit b1b3e01abd

View File

@ -26,14 +26,20 @@ namespace osu.Game.Online.Placeholders
{
AutoSizeAxes = Axes.Both;
Child = new OsuTextFlowContainer(cp => cp.Font = cp.Font.With(size: TEXT_SIZE))
.With(t => t.AutoSizeAxes = Axes.Both)
.With(t => t.AddIcon(FontAwesome.Solid.UserLock, icon =>
{
icon.Padding = new MarginPadding { Right = 10 };
}))
.With(t => t.AddText(actionMessage))
.With(t => t.Margin = new MarginPadding(5));
var textFlowContainer = new OsuTextFlowContainer(cp => cp.Font = cp.Font.With(size: TEXT_SIZE))
{
AutoSizeAxes = Axes.Both,
Margin = new MarginPadding(5)
};
Child = textFlowContainer;
textFlowContainer.AddIcon(FontAwesome.Solid.UserLock, icon =>
{
icon.Padding = new MarginPadding { Right = 10 };
});
textFlowContainer.AddText(actionMessage);
Action = () => login?.Show();
}