mirror of
https://github.com/ppy/osu.git
synced 2025-03-01 18:03:01 +08:00
Slightly reduce background brightness at main menu when seasonal lighting is active
This commit is contained in:
parent
6b56c658b3
commit
d8686f55f7
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user