1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-01 21:02:55 +08:00

Slightly reduce background brightness at main menu when seasonal lighting is active

This commit is contained in:
Dean Herbert 2024-12-24 17:10:48 +09:00
parent 6b56c658b3
commit d8686f55f7
No known key found for this signature in database

View File

@ -202,18 +202,20 @@ namespace osu.Game.Screens.Menu
holdToExitGameOverlay?.CreateProxy() ?? Empty() holdToExitGameOverlay?.CreateProxy() ?? Empty()
}); });
float baseDim = SeasonalUIConfig.ENABLED ? 0.84f : 1;
Buttons.StateChanged += state => Buttons.StateChanged += state =>
{ {
switch (state) switch (state)
{ {
case ButtonSystemState.Initial: case ButtonSystemState.Initial:
case ButtonSystemState.Exit: 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; onlineMenuBanner.State.Value = Visibility.Hidden;
break; break;
default: 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; onlineMenuBanner.State.Value = Visibility.Visible;
break; break;
} }