1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 22:22:55 +08:00

Fix visual settings expand button colour

This commit is contained in:
Joehu 2018-06-01 15:31:25 -07:00
parent 53b11155d1
commit 5d1421c0e9

View File

@ -50,11 +50,11 @@ namespace osu.Game.Screens.Play.PlayerSettings
content.ResizeHeightTo(0, transition_duration, Easing.OutQuint);
}
button.FadeColour(expanded ? buttonActiveColour : Color4.White, 200, Easing.OutQuint);
button.FadeColour(expanded ? expandedColour : Color4.White, 200, Easing.OutQuint);
}
}
private Color4 buttonActiveColour;
private Color4 expandedColour;
protected PlayerSettingsGroup()
{
@ -130,7 +130,16 @@ namespace osu.Game.Screens.Play.PlayerSettings
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
button.Colour = buttonActiveColour = colours.Yellow;
if (expanded)
{
button.Colour = colours.Yellow;
}
else
{
button.Colour = Color4.White;
}
expandedColour = colours.Yellow;
}
protected override Container<Drawable> Content => content;