mirror of https://github.com/ppy/osu
Use 10% alpha rather than 0% when toolbox is not hovered
This commit is contained in:
parent
a93c350ca8
commit
2404bb42b9
|
@ -80,7 +80,7 @@ private void load(OverlayColourProvider? colourProvider)
|
|||
background = new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Alpha = 0,
|
||||
Alpha = 0.1f,
|
||||
Colour = colourProvider?.Background5 ?? Color4.Black,
|
||||
},
|
||||
new FillFlowContainer
|
||||
|
@ -184,7 +184,7 @@ private void updateFadeState()
|
|||
{
|
||||
const float fade_duration = 500;
|
||||
|
||||
background.FadeTo(IsHovered ? 1 : 0, fade_duration, Easing.OutQuint);
|
||||
background.FadeTo(IsHovered ? 1 : 0.1f, fade_duration, Easing.OutQuint);
|
||||
expandButton.FadeTo(IsHovered ? 1 : 0, fade_duration, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue