Fix alignment and size of mute button

This commit is contained in:
Joehu 2019-08-22 21:36:21 -07:00
parent 5325982f49
commit c41b1e9eb4

View File

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