namespace Terminal.Gui; /// /// Helper class that resolves w3c color names to their hex values /// Based on https://www.w3schools.com/colors/color_tryit.asp /// public class W3CColors : IColorNameResolver { /// public IEnumerable GetColorNames () { return ColorStrings.GetW3CColorNames (); } /// public bool TryParseColor (string name, out Color color) { return ColorStrings.TryParseW3CColorName (name, out color); } /// public bool TryNameColor (Color color, out string name) { string answer = ColorStrings.GetW3CColorName (color); name = answer ?? string.Empty; return answer != null; } }