1
0
mirror of https://github.com/ppy/osu synced 2025-03-25 04:18:03 +00:00
This commit is contained in:
Shane Woolcock 2017-10-21 17:06:28 +10:30
parent f5946c0e07
commit 59b10981dc

View File

@ -184,7 +184,7 @@ namespace osu.Game.Overlays.Settings
internal void UpdateState() internal void UpdateState()
{ {
var colour = Bindable.Disabled ? Color4.Gray : indicatorColour; var colour = Bindable.Disabled ? Color4.Gray : indicatorColour;
Alpha = Bindable.IsDefault ? 0f : (hovering && !Bindable.Disabled) ? 1f : 0.5f; Alpha = Bindable.IsDefault ? 0f : hovering && !Bindable.Disabled ? 1f : 0.5f;
Colour = ColourInfo.GradientHorizontal(colour.Opacity(0.8f), colour.Opacity(0)); Colour = ColourInfo.GradientHorizontal(colour.Opacity(0.8f), colour.Opacity(0));
} }
} }