Skip to content

Commit

Permalink
Slightly reduce background brightness at main menu when seasonal ligh…
Browse files Browse the repository at this point in the history
…ting is active
  • Loading branch information
peppy committed Dec 24, 2024
1 parent 6b56c65 commit d8686f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions osu.Game/Screens/Menu/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,20 @@ private void load(BeatmapListingOverlay beatmapListing, SettingsOverlay settings
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;
}
Expand Down

0 comments on commit d8686f5

Please sign in to comment.