Set-SpectreColors
Synopsis
Sets the accent color and default value color for Spectre Console.
Description
This function sets the accent color and default value color for Spectre Console. The accent color is used for highlighting important information, while the default value color is used for displaying default values.
An example of the accent color is the highlight used in Read-SpectreSelection
:
An example of the default value color is the default value displayed in Read-SpectreText
:
Examples
Sets the accent color to Red and the default value color to Yellow.
Set-SpectreColors -AccentColor Red -DefaultValueColor Yellow
Sets the accent color to Green and keeps the default value color as Grey.
Set-SpectreColors -AccentColor Green
Parameters
AccentColor
The accent color to set. Must be a valid Spectre Console color name. Defaults to “Blue”.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] | false | 1 | false |
DefaultValueColor
The default value color to set. Must be a valid Spectre Console color name. Defaults to “Grey”.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] | false | 2 | false |
Syntax
Set-SpectreColors [[-AccentColor] <String>] [[-DefaultValueColor] <String>] [<CommonParameters>]