mirror of
https://github.com/ppy/osu
synced 2025-01-01 20:02:14 +00:00
Adjust gradient visibility and transition
This commit is contained in:
parent
1f55ef211e
commit
70aa067eb1
@ -224,9 +224,9 @@ namespace osu.Game.Overlays.Toolbar
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Alpha = 0,
|
||||
Height = 100,
|
||||
Height = 80,
|
||||
Colour = ColourInfo.GradientVertical(
|
||||
OsuColour.Gray(0).Opacity(0.9f), OsuColour.Gray(0).Opacity(0)),
|
||||
OsuColour.Gray(0f).Opacity(0.7f), OsuColour.Gray(0).Opacity(0)),
|
||||
},
|
||||
};
|
||||
}
|
||||
@ -241,9 +241,9 @@ namespace osu.Game.Overlays.Toolbar
|
||||
private void updateState()
|
||||
{
|
||||
if (ShowGradient.Value)
|
||||
gradientBackground.FadeIn(transition_time, Easing.OutQuint);
|
||||
gradientBackground.FadeIn(2500, Easing.OutQuint);
|
||||
else
|
||||
gradientBackground.FadeOut(transition_time, Easing.OutQuint);
|
||||
gradientBackground.FadeOut(200, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user