Skip to content

Commit 2540399

Browse files
SteveL-MSFTRob Holt
authored andcommitted
New colors supported by PS7 (PowerShell#1064)
1 parent 809d244 commit 2540399

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/PowerShellEditorServices/Session/Host/EditorServicesPSHost.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,28 @@ internal ConsoleColorProxy(EditorServicesPSHostUserInterface hostUserInterface)
8787
_hostUserInterface = hostUserInterface;
8888
}
8989

90+
/// <summary>
91+
/// The Accent Color for Formatting
92+
/// </summary>
93+
public ConsoleColor FormatAccentColor
94+
{
95+
get
96+
{ return _hostUserInterface.FormatAccentColor; }
97+
set
98+
{ _hostUserInterface.FormatAccentColor = value; }
99+
}
100+
101+
/// <summary>
102+
/// The Accent Color for Error
103+
/// </summary>
104+
public ConsoleColor ErrorAccentColor
105+
{
106+
get
107+
{ return _hostUserInterface.ErrorAccentColor; }
108+
set
109+
{ _hostUserInterface.ErrorAccentColor = value; }
110+
}
111+
90112
/// <summary>
91113
/// The ForegroundColor for Error
92114
/// </summary>

src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,9 @@ private void WriteDebuggerBanner(DebuggerStopEventArgs eventArgs)
690690

691691
internal static ConsoleColor BackgroundColor { get; set; }
692692

693+
internal ConsoleColor FormatAccentColor { get; set; } = ConsoleColor.Green;
694+
internal ConsoleColor ErrorAccentColor { get; set; } = ConsoleColor.Cyan;
695+
693696
internal ConsoleColor ErrorForegroundColor { get; set; } = ConsoleColor.Red;
694697
internal ConsoleColor ErrorBackgroundColor { get; set; } = BackgroundColor;
695698

0 commit comments

Comments
 (0)