1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:47:28 +08:00

Merge pull request #27973 from peppy/fix-overlay-colour

Fix settings colour scheme wrong when viewing gameplay from skin editor button
This commit is contained in:
Bartłomiej Dach 2024-04-23 15:22:27 +02:00 committed by GitHub
commit 777081e941
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,6 +101,11 @@ namespace osu.Game.Screens.Play
/// </summary>
public IBindable<bool> ShowingOverlayComponents = new Bindable<bool>();
// Should match PlayerLoader for consistency. Cached here for the rare case we push a Player
// without the loading screen (one such usage is the skin editor's scene library).
[Cached]
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
[Resolved]
private ScoreManager scoreManager { get; set; }