Class ColorScheme
Defines the color Attributes for common visible elements in a View.
Containers such as Window and FrameView use ColorScheme to determine
the colors used by sub-views.
Inheritance
System.Object
ColorScheme
Implements
System.IEquatable<ColorScheme>
Remarks
See also: ColorSchemes.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class ColorScheme : IEquatable<ColorScheme>
Properties
| Improve this Doc View SourceDisabled
The default foreground and background color for text, when the view is disabled.
Declaration
public Attribute Disabled { get; set; }
Property Value
Type | Description |
---|---|
Attribute |
Focus
The foreground and background color for text when the view has the focus.
Declaration
public Attribute Focus { get; set; }
Property Value
Type | Description |
---|---|
Attribute |
HotFocus
The foreground and background color for text when the view is highlighted (hot) and has focus.
Declaration
public Attribute HotFocus { get; set; }
Property Value
Type | Description |
---|---|
Attribute |
HotNormal
The foreground and background color for text when the view is highlighted (hot).
Declaration
public Attribute HotNormal { get; set; }
Property Value
Type | Description |
---|---|
Attribute |
Normal
The foreground and background color for text when the view is not focused, hot, or disabled.
Declaration
public Attribute Normal { get; set; }
Property Value
Type | Description |
---|---|
Attribute |
Methods
| Improve this Doc View SourceEquals(Object)
Compares two ColorScheme objects for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean | true if the two objects are equal |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
Equals(ColorScheme)
Compares two ColorScheme objects for equality.
Declaration
public bool Equals(ColorScheme other)
Parameters
Type | Name | Description |
---|---|---|
ColorScheme | other |
Returns
Type | Description |
---|---|
System.Boolean | true if the two objects are equal |
GetHashCode()
Returns a hashcode for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | hashcode for this instance |
Overrides
System.Object.GetHashCode()
Operators
| Improve this Doc View SourceEquality(ColorScheme, ColorScheme)
Compares two ColorScheme objects for equality.
Declaration
public static bool operator ==(ColorScheme left, ColorScheme right)
Parameters
Type | Name | Description |
---|---|---|
ColorScheme | left | |
ColorScheme | right |
Returns
Type | Description |
---|---|
System.Boolean | true if the two objects are equivalent |
Inequality(ColorScheme, ColorScheme)
Compares two ColorScheme objects for inequality.
Declaration
public static bool operator !=(ColorScheme left, ColorScheme right)
Parameters
Type | Name | Description |
---|---|---|
ColorScheme | left | |
ColorScheme | right |
Returns
Type | Description |
---|---|
System.Boolean | true if the two objects are not equivalent |
Implements
System.IEquatable<T>