Class ColorScheme
[JsonConverter(typeof(ColorSchemeJsonConverter))]
public record ColorScheme : IEqualityOperators<ColorScheme, ColorScheme, bool>, IEquatable<ColorScheme>
- Inheritance
-
ColorScheme
- Implements
- Inherited Members
Remarks
ColorScheme objects are immutable. Once constructed, the properties cannot be changed. To change a ColorScheme, create a new one with the desired values, using the ColorScheme(ColorScheme?) constructor.
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.
- 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.