1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-12 10:27:20 +08:00

Fix beatmap badge colours not updated inline with recent changes

This commit is contained in:
Salman Ahmed 2022-05-28 01:05:07 +03:00
parent 5eb16ff46c
commit 06832a4baf
3 changed files with 7 additions and 4 deletions

View File

@ -197,10 +197,10 @@ namespace osu.Game.Graphics
switch (roomCategory) switch (roomCategory)
{ {
case RoomCategory.Spotlight: case RoomCategory.Spotlight:
return Green2; return SpotlightColour;
case RoomCategory.FeaturedArtist: case RoomCategory.FeaturedArtist:
return Blue2; return FeaturedArtistColour;
default: default:
return null; return null;
@ -379,5 +379,8 @@ namespace osu.Game.Graphics
public readonly Color4 ChatBlue = Color4Extensions.FromHex(@"17292e"); public readonly Color4 ChatBlue = Color4Extensions.FromHex(@"17292e");
public readonly Color4 ContextMenuGray = Color4Extensions.FromHex(@"223034"); public readonly Color4 ContextMenuGray = Color4Extensions.FromHex(@"223034");
public Color4 SpotlightColour => Green2;
public Color4 FeaturedArtistColour => Blue2;
} }
} }

View File

@ -15,7 +15,7 @@ namespace osu.Game.Overlays.BeatmapSet
private void load(OsuColour colours) private void load(OsuColour colours)
{ {
BadgeText = BeatmapsetsStrings.FeaturedArtistBadgeLabel; BadgeText = BeatmapsetsStrings.FeaturedArtistBadgeLabel;
BadgeColour = colours.Blue1; BadgeColour = colours.FeaturedArtistColour;
// todo: add linking support to allow redirecting featured artist badge to corresponding track. // todo: add linking support to allow redirecting featured artist badge to corresponding track.
} }
} }

View File

@ -15,7 +15,7 @@ namespace osu.Game.Overlays.BeatmapSet
private void load(OsuColour colours) private void load(OsuColour colours)
{ {
BadgeText = BeatmapsetsStrings.SpotlightBadgeLabel; BadgeText = BeatmapsetsStrings.SpotlightBadgeLabel;
BadgeColour = colours.Pink1; BadgeColour = colours.SpotlightColour;
// todo: add linking support to allow redirecting spotlight badge to https://osu.ppy.sh/wiki/en/Beatmap_Spotlights. // todo: add linking support to allow redirecting spotlight badge to https://osu.ppy.sh/wiki/en/Beatmap_Spotlights.
} }
} }