Skip to content

Commit 29b8676

Browse files
SteveL-MSFTTylerLeonhardt
authored andcommitted
New colors supported by PS7 (#1064)
1 parent 6c4afef commit 29b8676

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Session/Host/EditorServicesPSHost.cs

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

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

src/PowerShellEditorServices/Services/PowerShellContext/Session/Host/EditorServicesPSHostUserInterface.cs

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

790790
internal static ConsoleColor BackgroundColor { get; set; }
791791

792+
internal ConsoleColor FormatAccentColor { get; set; } = ConsoleColor.Green;
793+
internal ConsoleColor ErrorAccentColor { get; set; } = ConsoleColor.Cyan;
794+
792795
internal ConsoleColor ErrorForegroundColor { get; set; } = ConsoleColor.Red;
793796
internal ConsoleColor ErrorBackgroundColor { get; set; } = BackgroundColor;
794797

0 commit comments

Comments
 (0)