1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:22:56 +08:00

Use top-left colour for deciding the text colour (gradient was added in some cases)

This commit is contained in:
Dean Herbert 2020-09-30 17:10:22 +09:00
parent 6e1ea00443
commit 3422db1bb2

View File

@ -185,7 +185,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
else
mainComponents.Colour = drawableHitObject.AccentColour.Value;
var col = mainComponents.Colour.AverageColour.Linear;
var col = mainComponents.Colour.TopLeft.Linear;
float brightness = col.R + col.G + col.B;
// decide the combo index colour based on brightness?