From 035541bab28ecf7d3ca2811cd67a191ffc9e38ce Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 29 May 2025 20:19:54 +0900 Subject: [PATCH] Use realtime difficulty colouring for other relevant areas --- osu.Game/Screens/SelectV2/PanelBeatmap.cs | 9 ++++----- osu.Game/Screens/SelectV2/PanelBeatmapStandalone.cs | 9 +++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/osu.Game/Screens/SelectV2/PanelBeatmap.cs b/osu.Game/Screens/SelectV2/PanelBeatmap.cs index 8eededd412..90de0dd270 100644 --- a/osu.Game/Screens/SelectV2/PanelBeatmap.cs +++ b/osu.Game/Screens/SelectV2/PanelBeatmap.cs @@ -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 diff --git a/osu.Game/Screens/SelectV2/PanelBeatmapStandalone.cs b/osu.Game/Screens/SelectV2/PanelBeatmapStandalone.cs index 86f8374088..640cdccb1b 100644 --- a/osu.Game/Screens/SelectV2/PanelBeatmapStandalone.cs +++ b/osu.Game/Screens/SelectV2/PanelBeatmapStandalone.cs @@ -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