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:
parent
6e1ea00443
commit
3422db1bb2
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user