1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 19:07:20 +08:00

Merge pull request #21477 from peppy/fix-mania-timeline-blueprint-colour

Fix osu!mania editor timeline showing bright-white blueprints
This commit is contained in:
Dan Balasescu 2022-12-02 16:55:29 +09:00 committed by GitHub
commit d684aa75b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ using osu.Framework.Utils;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Overlays;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Types;
@ -54,6 +55,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
[Resolved]
private ISkinSource skin { get; set; } = null!;
[Resolved]
private OverlayColourProvider colourProvider { get; set; } = null!;
public TimelineHitObjectBlueprint(HitObject item)
: base(item)
{
@ -165,7 +169,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
break;
default:
return;
colour = colourProvider.Highlight1;
break;
}
if (IsSelected)