Use 10% alpha rather than 0% when toolbox is not hovered

This commit is contained in:
Dean Herbert 2022-10-14 19:33:49 +09:00
parent a93c350ca8
commit 2404bb42b9
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}