mirror of https://github.com/ppy/osu
Rename to dimColour
This commit is contained in:
parent
f44af1ad69
commit
18c144395a
|
@ -89,11 +89,11 @@ protected override void LoadComplete()
|
|||
{
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -97,11 +97,11 @@ protected override void LoadComplete()
|
|||
{
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue