Skip to content
Permalink
Browse files

Fix: gray text was invisible on Solarized Dark theme (fixes #4886)

There is a long-standing solarized bug [1] where gray text is invisible
on the dark theme.
Follow Chalk's advice [2] and use 'dim' rather than 'gray'.

[1] altercation/solarized#220
[2] chalk/chalk#40
  • Loading branch information...
leighman committed Jan 8, 2016
1 parent 0a01bcc commit a1840e79f46657dff1a24ee20cecf31379a976ff
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/formatters/stylish.js
@@ -62,7 +62,7 @@ module.exports = function(results) {
message.column || 0,
messageType,
message.message.replace(/\.$/, ""),
chalk.gray(message.ruleId || "")
chalk.dim(message.ruleId || "")
];
}),
{
@@ -73,7 +73,7 @@ module.exports = function(results) {
}
).split("\n").map(function(el) {
return el.replace(/(\d+)\s+(\d+)/, function(m, p1, p2) {
return chalk.gray(p1 + ":" + p2);
return chalk.dim(p1 + ":" + p2);
});
}).join("\n") + "\n\n";
});

0 comments on commit a1840e7

Please sign in to comment.
You can’t perform that action at this time.