Files
OldThink/Content.Shared/Chat/ChatChannelExtensions.cs
rhailrake 7872502bf8 - add: new lobby and ui tweaks. (#7)
* base

* arrow pointer for buttons

* some progress for text buttons, need cleaning

* fixed observe button, remove fraction

* just for now

* ui tweaks

* more ui tweaks

* feat: ченджлог в лобби

---------

Co-authored-by: Remuchi <RemuchiOfficial@gmail.com>
2024-01-31 12:54:38 +00:00

23 lines
759 B
C#

namespace Content.Shared.Chat;
public static class ChatChannelExtensions
{
public static Color TextColor(this ChatChannel channel)
{
return channel switch
{
ChatChannel.Server => Color.FromHex("#9051a8"),
ChatChannel.Radio => Color.LimeGreen,
ChatChannel.LOOC => Color.MediumTurquoise,
ChatChannel.OOC => Color.LightSkyBlue,
ChatChannel.Dead => Color.MediumPurple,
ChatChannel.Admin => Color.Red,
ChatChannel.AdminAlert => Color.Red,
ChatChannel.AdminChat => Color.HotPink,
ChatChannel.Whisper => Color.DarkGray,
ChatChannel.Cult => Color.DarkRed, // WD EDIT
_ => Color.LightGray
};
}
}