Skip to content

Hex1bThemeExtensions

Namespace: Hex1b.Theming

Assembly: Hex1b.dll

Extension methods for to support global color operations.

csharp
public static class Hex1bThemeExtensions

Inheritance

ObjectHex1bThemeExtensions

Methods

GetGlobalBackground(Hex1bTheme)

Gets the global background color from the theme.

Parameters:

Returns: Hex1bColor

csharp
public static Hex1bColor GetGlobalBackground(this Hex1bTheme theme)

GetGlobalColorCodes(Hex1bTheme)

Gets the ANSI codes to apply global colors from the theme, or empty string if default.

Parameters:

Returns: String

csharp
public static string GetGlobalColorCodes(this Hex1bTheme theme)

GetGlobalForeground(Hex1bTheme)

Gets the global foreground color from the theme.

Parameters:

Returns: Hex1bColor

csharp
public static Hex1bColor GetGlobalForeground(this Hex1bTheme theme)

GetResetToGlobalCodes(Hex1bTheme)

Gets the ANSI codes to reset colors back to global theme values (or default if none). Use this after applying temporary color changes.

Parameters:

Returns: String

csharp
public static string GetResetToGlobalCodes(this Hex1bTheme theme)

Released under the MIT License.