File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -883,7 +883,11 @@ impl Destination {
883
883
Style :: FileNameStyle | Style :: LineAndColumn => { }
884
884
Style :: LineNumber => {
885
885
try!( self . start_attr ( term:: Attr :: Bold ) ) ;
886
- try!( self . start_attr ( term:: Attr :: ForegroundColor ( term:: color:: BRIGHT_BLUE ) ) ) ;
886
+ if cfg ! ( windows) {
887
+ try!( self . start_attr ( term:: Attr :: ForegroundColor ( term:: color:: BRIGHT_CYAN ) ) ) ;
888
+ } else {
889
+ try!( self . start_attr ( term:: Attr :: ForegroundColor ( term:: color:: BRIGHT_BLUE ) ) ) ;
890
+ }
887
891
}
888
892
Style :: ErrorCode => {
889
893
try!( self . start_attr ( term:: Attr :: Bold ) ) ;
@@ -896,6 +900,9 @@ impl Destination {
896
900
}
897
901
Style :: OldSchoolNoteText | Style :: HeaderMsg => {
898
902
try!( self . start_attr ( term:: Attr :: Bold ) ) ;
903
+ if cfg ! ( windows) {
904
+ try!( self . start_attr ( term:: Attr :: ForegroundColor ( term:: color:: BRIGHT_WHITE ) ) ) ;
905
+ }
899
906
}
900
907
Style :: UnderlinePrimary | Style :: LabelPrimary => {
901
908
try!( self . start_attr ( term:: Attr :: Bold ) ) ;
@@ -904,7 +911,11 @@ impl Destination {
904
911
Style :: UnderlineSecondary |
905
912
Style :: LabelSecondary => {
906
913
try!( self . start_attr ( term:: Attr :: Bold ) ) ;
907
- try!( self . start_attr ( term:: Attr :: ForegroundColor ( term:: color:: BRIGHT_BLUE ) ) ) ;
914
+ if cfg ! ( windows) {
915
+ try!( self . start_attr ( term:: Attr :: ForegroundColor ( term:: color:: BRIGHT_CYAN ) ) ) ;
916
+ } else {
917
+ try!( self . start_attr ( term:: Attr :: ForegroundColor ( term:: color:: BRIGHT_BLUE ) ) ) ;
918
+ }
908
919
}
909
920
Style :: NoStyle => { }
910
921
Style :: Level ( l) => {
Original file line number Diff line number Diff line change @@ -732,7 +732,13 @@ impl Level {
732
732
pub fn color ( self ) -> term:: color:: Color {
733
733
match self {
734
734
Bug | Fatal | PhaseFatal | Error => term:: color:: BRIGHT_RED ,
735
- Warning => term:: color:: YELLOW ,
735
+ Warning => {
736
+ if cfg ! ( windows) {
737
+ term:: color:: BRIGHT_YELLOW
738
+ } else {
739
+ term:: color:: YELLOW
740
+ }
741
+ } ,
736
742
Note => term:: color:: BRIGHT_GREEN ,
737
743
Help => term:: color:: BRIGHT_CYAN ,
738
744
Cancelled => unreachable ! ( ) ,
You can’t perform that action at this time.
0 commit comments