mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Fix drawable room border colour not matching badge
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
using System;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Online.Rooms;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
@ -188,6 +189,24 @@ namespace osu.Game.Graphics
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the main accent colour for a <see cref="RoomCategory"/>.
|
||||
/// </summary>
|
||||
public Color4? ForRoomCategory(RoomCategory roomCategory)
|
||||
{
|
||||
switch (roomCategory)
|
||||
{
|
||||
case RoomCategory.Spotlight:
|
||||
return Green2;
|
||||
|
||||
case RoomCategory.FeaturedArtist:
|
||||
return Blue2;
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a foreground text colour that is supposed to contrast well with
|
||||
/// the supplied <paramref name="backgroundColour"/>.
|
||||
|
Reference in New Issue
Block a user