Class HexColorHelper
Helper to parse hex colors to Terminal.Gui Attributes.
public static class HexColorHelper
- Inheritance
-
HexColorHelper
- Inherited Members
Methods
ParseHexColor(string?)
public static Attribute? ParseHexColor(string? hex)
Parameters
hexstring
Returns
- Attribute?
ParseHexToColor(string?, Color)
Parse a hex color string (with or without #) to a Terminal.Gui Color.
Returns fallback if parsing fails.
public static Color ParseHexToColor(string? hex, Color fallback = default)
Parameters
hexstringfallbackColor
Returns
- Color