mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Fix drawable room border colour not matching badge
This commit is contained in:
@ -30,8 +30,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
||||
{
|
||||
status.BindValueChanged(s =>
|
||||
{
|
||||
this.FadeColour(category.Value == RoomCategory.Spotlight ? colours.Pink : s.NewValue.GetAppropriateColour(colours)
|
||||
, transitionDuration);
|
||||
this.FadeColour(colours.ForRoomCategory(category.Value) ?? s.NewValue.GetAppropriateColour(colours), transitionDuration);
|
||||
}, true);
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Online.Rooms;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
||||
@ -53,16 +52,9 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
||||
{
|
||||
text.Text = c.NewValue.GetLocalisableDescription();
|
||||
|
||||
switch (c.NewValue)
|
||||
{
|
||||
case RoomCategory.Spotlight:
|
||||
pill.Background.Colour = colours.Green2;
|
||||
break;
|
||||
|
||||
case RoomCategory.FeaturedArtist:
|
||||
pill.Background.Colour = colours.Blue2;
|
||||
break;
|
||||
}
|
||||
var backgroundColour = colours.ForRoomCategory(Category.Value);
|
||||
if (backgroundColour != null)
|
||||
pill.Background.Colour = backgroundColour.Value;
|
||||
}, true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user