mirror of
https://github.com/ppy/osu
synced 2024-12-28 18:02:53 +00: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:
parent
b432885e5f
commit
88c190f3e3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user