mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 06:52:55 +08:00
Merge pull request #18053 from peppy/sheared-button-ux
Adjust sheared button visuals to improve disabled / mousedown state
This commit is contained in:
commit
62951066bb
@ -158,7 +158,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override bool OnMouseDown(MouseDownEvent e)
|
||||
{
|
||||
Content.ScaleTo(0.8f, 2000, Easing.OutQuint);
|
||||
Content.ScaleTo(0.9f, 2000, Easing.OutQuint);
|
||||
return base.OnMouseDown(e);
|
||||
}
|
||||
|
||||
@ -176,8 +176,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
if (!Enabled.Value)
|
||||
{
|
||||
colourDark = colourDark.Darken(0.3f);
|
||||
colourLight = colourLight.Darken(0.3f);
|
||||
colourDark = colourDark.Darken(1f);
|
||||
colourLight = colourLight.Darken(1f);
|
||||
}
|
||||
else if (IsHovered)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user