Skip to content

Commit 2c5a07d

Browse files
committed
Use bright white when blue is probably going to look off
1 parent aa1d04a commit 2c5a07d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/executeCommandLine/executeCommandLine.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace ts {
9696
bold: (str: string) => str,
9797
blue: (str: string) => str,
9898
blueBackground: (str: string) => str,
99-
white: (str: string) => str
99+
brightWhite: (str: string) => str
100100
};
101101
}
102102

@@ -112,7 +112,7 @@ namespace ts {
112112
// Effectively Powershell and Command prompt users use cyan instead
113113
// of blue because the default theme doesn't show blue with enough contrast.
114114
if (isWindows && !isWindowsTerminal && !isVSCode) {
115-
return `\x1b[96m${str}\x1b[39m`;
115+
return brightWhite(str);
116116
}
117117

118118
return `\x1b[94m${str}\x1b[39m`;
@@ -130,13 +130,13 @@ namespace ts {
130130
return `\x1b[44m${str}\x1B[39;49m`;
131131
}
132132
}
133-
function white(str: string) {
133+
function brightWhite(str: string) {
134134
return `\x1b[97m${str}\x1b[39m`;
135135
}
136136
return {
137137
bold,
138138
blue,
139-
white,
139+
brightWhite,
140140
blueBackground
141141
};
142142
}
@@ -413,7 +413,7 @@ namespace ts {
413413
const tsIconLength = 5;
414414

415415
const tsIconFirstLine = colors.blueBackground(padLeft("", tsIconLength));
416-
const tsIconSecondLine = colors.blueBackground(colors.white(padLeft("TS ", tsIconLength)));
416+
const tsIconSecondLine = colors.blueBackground(colors.brightWhite(padLeft("TS ", tsIconLength)));
417417
// If we have enough space, print TS icon.
418418
if (terminalWidth >= tscExplanation.length + tsIconLength) {
419419
// right align of the icon is 120 at most.

0 commit comments

Comments
 (0)