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 @@ protected override void LoadComplete()
{ {
base.LoadComplete(); base.LoadComplete();
Colour = enablementColour; Colour = dimColour;
Enabled.BindValueChanged(_ => this.FadeColour(enablementColour, 200, Easing.OutQuint)); 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) protected override bool OnHover(HoverEvent e)
{ {

View File

@ -97,11 +97,11 @@ protected override void LoadComplete()
{ {
base.LoadComplete(); base.LoadComplete();
Colour = enablementColour; Colour = dimColour;
Enabled.BindValueChanged(_ => this.FadeColour(enablementColour, 200, Easing.OutQuint)); 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) protected override bool OnClick(ClickEvent e)
{ {