mirror of
https://github.com/ppy/osu
synced 2025-03-09 12:58:24 +00:00
Add hover color back to ClickablePlaceholder
This commit is contained in:
parent
22c3a25575
commit
9940be818d
@ -17,17 +17,19 @@ namespace osu.Game.Online.Placeholders
|
||||
|
||||
public ClickablePlaceholder(LocalisableString actionMessage, IconUsage icon)
|
||||
{
|
||||
OsuAnimatedButton button;
|
||||
OsuTextFlowContainer textFlow;
|
||||
|
||||
AddArbitraryDrawable(new OsuAnimatedButton
|
||||
AddArbitraryDrawable(button = new OsuAnimatedButton
|
||||
{
|
||||
AutoSizeAxes = Framework.Graphics.Axes.Both,
|
||||
Child = textFlow = new OsuTextFlowContainer(cp => cp.Font = cp.Font.With(size: TEXT_SIZE))
|
||||
Action = () => Action?.Invoke()
|
||||
});
|
||||
|
||||
button.Add(textFlow = new OsuTextFlowContainer(cp => cp.Font = cp.Font.With(size: TEXT_SIZE))
|
||||
{
|
||||
AutoSizeAxes = Framework.Graphics.Axes.Both,
|
||||
Margin = new Framework.Graphics.MarginPadding(5)
|
||||
},
|
||||
Action = () => Action?.Invoke()
|
||||
});
|
||||
|
||||
textFlow.AddIcon(icon, i =>
|
||||
|
Loading…
Reference in New Issue
Block a user