1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:20:04 +08:00

Change colour denoting expanded state to be gray rather than yellow

I always found the yellow colour very non-descript in this case. Gray
seems to work better?
This commit is contained in:
Dean Herbert 2022-05-06 19:45:14 +09:00
parent b432885e5f
commit 88c190f3e3

View File

@ -39,10 +39,10 @@ namespace osu.Game.Overlays
public BindableBool Expanded { get; } = new BindableBool(true);
private Color4 expandedColour;
private readonly OsuSpriteText headerText;
private readonly Container headerContent;
/// <summary>
/// Create a new instance.
/// </summary>
@ -71,7 +71,7 @@ namespace osu.Game.Overlays
AutoSizeAxes = Axes.Y,
Children = new Drawable[]
{
new Container
headerContent = new Container
{
Name = @"Header",
Origin = Anchor.TopCentre,
@ -117,12 +117,6 @@ namespace osu.Game.Overlays
};
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
expandedColour = colours.Yellow;
}
protected override void LoadComplete()
{
base.LoadComplete();
@ -172,7 +166,7 @@ namespace osu.Game.Overlays
content.ResizeHeightTo(0, transition_duration, Easing.OutQuint);
}
button.FadeColour(expanded.NewValue ? expandedColour : Color4.White, 200, Easing.InOutQuint);
headerContent.FadeColour(expanded.NewValue ? Color4.White : OsuColour.Gray(0.5f), 200, Easing.OutQuint);
}
private void updateFadeState()