1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 04:13:38 +08:00

Use realtime difficulty colouring for other relevant areas

This commit is contained in:
Dean Herbert
2025-05-29 20:19:54 +09:00
Unverified
parent c8389a8683
commit 035541bab2
2 changed files with 9 additions and 9 deletions
+4 -5
View File
@@ -227,7 +227,10 @@ namespace osu.Game.Screens.SelectV2
// I can't find a better way to do this.
starRatingDisplay.Margin = new MarginPadding { Left = 1 / starRatingDisplay.Scale.X * (localRank.HasRank ? 0 : -3) };
AccentColour = starRatingDisplay.DisplayedDifficultyColour;
var diffColour = starRatingDisplay.DisplayedDifficultyColour;
AccentColour = diffColour;
starCounter.Colour = diffColour;
}
private void updateKeyCount()
@@ -261,10 +264,6 @@ namespace osu.Game.Screens.SelectV2
starCounter.Current = (float)starDifficulty.Stars;
difficultyIcon.FadeColour(starDifficulty.Stars > OsuColour.STAR_DIFFICULTY_DEFINED_COLOUR_CUTOFF ? colours.Orange1 : colourProvider.Background5, duration, Easing.OutQuint);
var starRatingColour = colours.ForStarDifficulty(starDifficulty.Stars);
starCounter.FadeColour(starRatingColour, duration, Easing.OutQuint);
AccentColour = starRatingColour;
}
public override MenuItem[] ContextMenuItems
@@ -273,6 +273,11 @@ namespace osu.Game.Screens.SelectV2
// Dirty hack to make sure we don't take up spacing in parent fill flow when not displaying a rank.
// I can't find a better way to do this.
starRatingDisplay.Margin = new MarginPadding { Left = 1 / starRatingDisplay.Scale.X * (localRank.HasRank ? 0 : -3) };
var diffColour = starRatingDisplay.DisplayedDifficultyColour;
AccentColour = diffColour;
starCounter.Colour = diffColour;
}
private void updateKeyCount()
@@ -306,10 +311,6 @@ namespace osu.Game.Screens.SelectV2
starCounter.Current = (float)starDifficulty.Stars;
difficultyIcon.FadeColour(starDifficulty.Stars > OsuColour.STAR_DIFFICULTY_DEFINED_COLOUR_CUTOFF ? colours.Orange1 : colourProvider.Background5, duration, Easing.OutQuint);
var starRatingColour = colours.ForStarDifficulty(starDifficulty.Stars);
starCounter.FadeColour(starRatingColour, duration, Easing.OutQuint);
AccentColour = colours.ForStarDifficulty(starDifficulty.Stars);
}
public override MenuItem[] ContextMenuItems