1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Merge pull request #29912 from peppy/remove-dropdown-opacity

Remove opacity from old style dropdown menus
This commit is contained in:
Bartłomiej Dach 2024-09-18 09:48:11 +02:00 committed by GitHub
commit ba9143e597
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ namespace osu.Game.Graphics.UserInterface
[BackgroundDependencyLoader(true)]
private void load(OverlayColourProvider? colourProvider, OsuColour colours, AudioManager audio)
{
BackgroundColour = colourProvider?.Background5 ?? Color4.Black.Opacity(0.5f);
BackgroundColour = colourProvider?.Background5 ?? Color4.Black;
HoverColour = colourProvider?.Light4 ?? colours.PinkDarker;
SelectionColour = colourProvider?.Background3 ?? colours.PinkDarker.Opacity(0.5f);
@ -397,7 +397,7 @@ namespace osu.Game.Graphics.UserInterface
{
bool hovered = Enabled.Value && IsHovered;
var hoveredColour = colourProvider?.Light4 ?? colours.PinkDarker;
var unhoveredColour = colourProvider?.Background5 ?? Color4.Black.Opacity(0.5f);
var unhoveredColour = colourProvider?.Background5 ?? Color4.Black;
Colour = Color4.White;
Alpha = Enabled.Value ? 1 : 0.3f;