mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Fix visual settings expand button colour
This commit is contained in:
parent
53b11155d1
commit
5d1421c0e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user