File tree Expand file tree Collapse file tree 6 files changed +29
-14
lines changed Expand file tree Collapse file tree 6 files changed +29
-14
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "gray" : " #B0C4DE" ,
3+ "green" : " #66D9EF" ,
4+ "red" : " #AE81FF" ,
5+ "yellow" : " #87CEEB"
6+ }
Original file line number Diff line number Diff line change 11{
2- "black" : " #000000" ,
3- "blue" : " #000099" ,
4- "cyan" : " #009999" ,
5- "gray" : " #666666" ,
2+ "gray" : " #455354" ,
63 "green" : " #009900" ,
7- "magenta" : " #990099" ,
84 "red" : " #990000" ,
9- "white" : " #ffffff" ,
105 "yellow" : " #999900"
116}
Original file line number Diff line number Diff line change 1+ {
2+ "gray" : " #C4BE89" ,
3+ "green" : " #E6DB74" ,
4+ "red" : " #ef5939" ,
5+ "yellow" : " #FD971F"
6+ }
Original file line number Diff line number Diff line change 11{
2- "black" : " #000000" ,
3- "blue" : " #0000ff" ,
4- "cyan" : " #00ffff" ,
5- "gray" : " #999999" ,
2+ "gray" : " #BCA3A3" ,
63 "green" : " #ff1493" ,
7- "magenta" : " #ff00ff" ,
84 "red" : " #dc143c" ,
9- "white" : " #ffffff" ,
105 "yellow" : " #ff4500"
116}
Original file line number Diff line number Diff line change @@ -10,8 +10,21 @@ var chalk = {
1010var pres = [ ] ;
1111var posts = [ ] ;
1212
13+ var DEFAULT = {
14+ black : "#000000" ,
15+ blue : "#0000ff" ,
16+ cyan : "#00ffff" ,
17+ gray : "#999999" ,
18+ green : "#00ff00" ,
19+ magenta : "#ff00ff" ,
20+ red : "#ff0000" ,
21+ white : "#ffffff" ,
22+ yellow : "#ffff00"
23+ } ;
24+
1325chalk . setTheme = function ( name ) {
14- this . theme = this . themes [ name ] || this . themes . default || { } ;
26+ var theme = this . themes [ name ] || this . themes . default || { } ;
27+ this . theme = _ . extendOwn ( DEFAULT , theme ) ;
1528} ;
1629
1730chalk . print = function ( s ) {
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function showSummary(problems) {
6666function showGraph ( problems ) {
6767 var ac = chalk . green ( '█' ) ;
6868 var notac = chalk . enabled ? chalk . red ( '█' ) : 'X' ;
69- var none = '░' ;
69+ var none = chalk . gray ( '░' ) ;
7070
7171 var graph = [ ] ;
7272 _ . each ( problems , function ( problem ) {
You can’t perform that action at this time.
0 commit comments