mirror of
https://github.com/ppy/osu
synced 2025-01-03 04:42:10 +00:00
Fix alignment and size of mute button
This commit is contained in:
parent
5325982f49
commit
c41b1e9eb4
@ -65,13 +65,14 @@ namespace osu.Game.Overlays.Volume
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(20),
|
||||
}
|
||||
});
|
||||
|
||||
Current.ValueChanged += muted =>
|
||||
{
|
||||
icon.Icon = muted.NewValue ? FontAwesome.Solid.VolumeMute : FontAwesome.Solid.VolumeUp;
|
||||
icon.Size = new Vector2(muted.NewValue ? 18 : 20);
|
||||
icon.Margin = new MarginPadding { Right = muted.NewValue ? 2 : 0 };
|
||||
};
|
||||
|
||||
Current.TriggerChange();
|
||||
|
Loading…
Reference in New Issue
Block a user