1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00

Fix hovered dropdown item chevron not using OverlayColourProvider

This commit is contained in:
Bartłomiej Dach 2021-10-13 22:08:23 +02:00
parent 7e7b747755
commit a6c2848460
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -223,7 +223,6 @@ namespace osu.Game.Graphics.UserInterface
{
AlwaysPresent = true,
Icon = FontAwesome.Solid.ChevronRight,
Colour = Color4.Black,
Alpha = 0.5f,
Size = new Vector2(8),
Margin = new MarginPadding { Left = 3, Right = 3 },
@ -237,6 +236,12 @@ namespace osu.Game.Graphics.UserInterface
},
};
}
[BackgroundDependencyLoader(true)]
private void load(OverlayColourProvider? colourProvider)
{
Chevron.Colour = colourProvider?.Background5 ?? Color4.Black;
}
}
}