Class ColorScheme | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Defines a standard set of Attributes for common visible elements in a View.

[JsonConverter(typeof(ColorSchemeJsonConverter))]
public record ColorScheme : IEqualityOperators<ColorScheme, ColorScheme, bool>, IEquatable<ColorScheme>

Inheritance

ColorScheme

Implements

Inherited Members

Constructors

ColorScheme()

Creates a new instance set to the default colors (see Default).

ColorScheme(Attribute)

Creates a new instance, initialized with the values from attribute.

ColorScheme(Attribute, Attribute, Attribute, Attribute, Attribute)

Creates a new instance, initialized with the values provided.

ColorScheme(ColorScheme?)

Creates a new instance, initialized with the values from scheme.

Properties

Disabled

The default foreground and background color for text when the view is disabled.

Focus

The foreground and background color for text when the view has the focus.

HotFocus

The foreground and background color for text in a focused view that indicates a HotKey.

HotNormal

The foreground and background color for text in a non-focused view that indicates a HotKey.

Normal

The foreground and background color for text when the view is not focused, hot, or disabled.

Methods

Equals(ColorScheme?)

Compares two ColorScheme objects for equality.

GetHashCode()

Returns a hashcode for this instance.

GetHighlightColorScheme()

Gets a new ColorScheme with the same values as this instance, but with the foreground and background colors adjusted to be more visible.

ToString()

Returns a string that represents the current object.