mirror of
https://github.com/ppy/osu
synced 2025-01-19 20:40:52 +00:00
Apply review suggestion.
This commit is contained in:
parent
ea29f7c344
commit
b1b3e01abd
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user