mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 03:02:54 +08:00
Merge pull request #31258 from peppy/reduce-dim-seasonal
Slightly reduce background brightness at main menu when seasonal lighting is active
This commit is contained in:
commit
a169bf557d
@ -202,18 +202,20 @@ namespace osu.Game.Screens.Menu
|
||||
holdToExitGameOverlay?.CreateProxy() ?? Empty()
|
||||
});
|
||||
|
||||
float baseDim = SeasonalUIConfig.ENABLED ? 0.84f : 1;
|
||||
|
||||
Buttons.StateChanged += state =>
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case ButtonSystemState.Initial:
|
||||
case ButtonSystemState.Exit:
|
||||
ApplyToBackground(b => b.FadeColour(Color4.White, 500, Easing.OutSine));
|
||||
ApplyToBackground(b => b.FadeColour(OsuColour.Gray(baseDim), 500, Easing.OutSine));
|
||||
onlineMenuBanner.State.Value = Visibility.Hidden;
|
||||
break;
|
||||
|
||||
default:
|
||||
ApplyToBackground(b => b.FadeColour(OsuColour.Gray(0.8f), 500, Easing.OutSine));
|
||||
ApplyToBackground(b => b.FadeColour(OsuColour.Gray(baseDim * 0.8f), 500, Easing.OutSine));
|
||||
onlineMenuBanner.State.Value = Visibility.Visible;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user