1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Rename to dimColour

This commit is contained in:
Dan Balasescu 2021-12-24 17:03:29 +09:00
parent f44af1ad69
commit 18c144395a
2 changed files with 6 additions and 6 deletions

View File

@ -89,11 +89,11 @@ namespace osu.Game.Graphics.UserInterface
{
base.LoadComplete();
Colour = enablementColour;
Enabled.BindValueChanged(_ => this.FadeColour(enablementColour, 200, Easing.OutQuint));
Colour = dimColour;
Enabled.BindValueChanged(_ => this.FadeColour(dimColour, 200, Easing.OutQuint));
}
private Color4 enablementColour => Enabled.Value ? Color4.White : colours.Gray9;
private Color4 dimColour => Enabled.Value ? Color4.White : colours.Gray9;
protected override bool OnHover(HoverEvent e)
{

View File

@ -97,11 +97,11 @@ namespace osu.Game.Graphics.UserInterface
{
base.LoadComplete();
Colour = enablementColour;
Enabled.BindValueChanged(_ => this.FadeColour(enablementColour, 200, Easing.OutQuint));
Colour = dimColour;
Enabled.BindValueChanged(_ => this.FadeColour(dimColour, 200, Easing.OutQuint));
}
private Color4 enablementColour => Enabled.Value ? Color4.White : Color4.Gray;
private Color4 dimColour => Enabled.Value ? Color4.White : Color4.Gray;
protected override bool OnClick(ClickEvent e)
{