mirror of
https://github.com/ppy/osu
synced 2025-01-25 07:13:22 +00:00
Fix dimmed checked nub artifact
This adds transition that extends nub's border to fill it. Fill fade can be removed, but combined effect looks nicer imo, and the fill is still needed because if removed, border becomes invisible for some reason.
This commit is contained in:
parent
f6c4bbe2c9
commit
0f5ed81a7a
@ -47,6 +47,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
};
|
||||
|
||||
Current.ValueChanged += filled => fill.FadeTo(filled.NewValue ? 1 : 0, 200, Easing.OutQuint);
|
||||
Current.ValueChanged += filled => this.TransformTo(nameof(BorderThickness), filled.NewValue ? 7 : border_width, 200, Easing.OutQuint);
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
Loading…
Reference in New Issue
Block a user