Class Colors
The default ColorSchemes for the application.
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public static class Colors
Remarks
This property can be set in a Theme to change the default Colors for the application.
Properties
| Edit this page View SourceBase
The base color scheme, for the default toplevel views.
Declaration
public static ColorScheme Base { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorScheme |
Remarks
This API will be deprecated in the future. Use ColorSchemes instead (e.g. edit.ColorScheme = Colors.ColorSchemes["Base"];
ColorSchemes
Provides the defined ColorSchemes.
Declaration
public static Dictionary<string, ColorScheme> ColorSchemes { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, ColorScheme> |
Dialog
The dialog color scheme, for standard popup dialog boxes
Declaration
public static ColorScheme Dialog { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorScheme |
Remarks
This API will be deprecated in the future. Use ColorSchemes instead (e.g. edit.ColorScheme = Colors.ColorSchemes["Dialog"];
Error
The color scheme for showing errors.
Declaration
public static ColorScheme Error { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorScheme |
Remarks
This API will be deprecated in the future. Use ColorSchemes instead (e.g. edit.ColorScheme = Colors.ColorSchemes["Error"];
Menu
The menu bar color
Declaration
public static ColorScheme Menu { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorScheme |
Remarks
This API will be deprecated in the future. Use ColorSchemes instead (e.g. edit.ColorScheme = Colors.ColorSchemes["Menu"];
TopLevel
The application toplevel color scheme, for the default toplevel views.
Declaration
public static ColorScheme TopLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorScheme |
Remarks
This API will be deprecated in the future. Use ColorSchemes instead (e.g. edit.ColorScheme = Colors.ColorSchemes["TopLevel"];
Methods
| Edit this page View SourceCreate()
Creates a new dictionary of new ColorScheme objects.
Declaration
public static Dictionary<string, ColorScheme> Create()
Returns
| Type | Description |
|---|---|
| Dictionary<string, ColorScheme> |