mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Fix visual settings expand button colour
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user