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