Minor readability refactors

This commit is contained in:
Dean Herbert 2023-05-02 14:31:39 +09:00
parent 7a840e1d82
commit ab4f66fad3
2 changed files with 6 additions and 5 deletions

View File

@ -155,7 +155,7 @@ namespace osu.Game.Graphics.Containers
private bool requiresBackgroundVisible => (scalingMode.Value == ScalingMode.Everything || scalingMode.Value == ScalingMode.ExcludeOverlays)
&& (sizeX.Value != 1 || sizeY.Value != 1)
&& scalingMenuBackgroundDim.Value != 1f;
&& scalingMenuBackgroundDim.Value < 1;
private void updateSize()
{

View File

@ -230,11 +230,12 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
if (s == dimSlider)
{
s.CanBeShown.Value = scalingMode.Value == ScalingMode.Everything || scalingMode.Value == ScalingMode.ExcludeOverlays;
return;
}
s.TransferValueOnCommit = scalingMode.Value == ScalingMode.Everything;
s.CanBeShown.Value = scalingMode.Value != ScalingMode.Off;
else
{
s.TransferValueOnCommit = scalingMode.Value == ScalingMode.Everything;
s.CanBeShown.Value = scalingMode.Value != ScalingMode.Off;
}
});
}
}