1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Invert text colour when freemods is enabled for better contrast

This commit is contained in:
Dean Herbert 2023-07-20 13:04:21 +09:00
parent 18c5fc689f
commit c93d6a4008

View File

@ -111,16 +111,19 @@ namespace osu.Game.Screens.OnlinePlay
if (current == allAvailableAndValidMods.Count()) if (current == allAvailableAndValidMods.Count())
{ {
count.Text = "all"; count.Text = "all";
count.FadeColour(colours.Gray2, 200, Easing.OutQuint);
circle.FadeColour(colours.Yellow, 200, Easing.OutQuint); circle.FadeColour(colours.Yellow, 200, Easing.OutQuint);
} }
else if (current > 0) else if (current > 0)
{ {
count.Text = $"{current} mods"; count.Text = $"{current} mods";
count.FadeColour(colours.Gray2, 200, Easing.OutQuint);
circle.FadeColour(colours.YellowDark, 200, Easing.OutQuint); circle.FadeColour(colours.YellowDark, 200, Easing.OutQuint);
} }
else else
{ {
count.Text = "off"; count.Text = "off";
count.FadeColour(colours.GrayF, 200, Easing.OutQuint);
circle.FadeColour(colours.Gray4, 200, Easing.OutQuint); circle.FadeColour(colours.Gray4, 200, Easing.OutQuint);
} }
} }