From 2eb3a4907ec045aefc2581c0d60f228a404fea28 2011-07-15 20:30:24 From: MinRK Date: 2011-07-15 20:30:24 Subject: [PATCH] use Colors.Normal for NAMEs in PyColorize LightBG/Linux previously hard-coded White&Black for names, rather than just using the foreground color. This maximized the penalty for using the wrong color scheme on a white or black background. --- diff --git a/IPython/utils/PyColorize.py b/IPython/utils/PyColorize.py index ddf3f7a..5f3c7f6 100644 --- a/IPython/utils/PyColorize.py +++ b/IPython/utils/PyColorize.py @@ -78,7 +78,7 @@ LinuxColors = ColorScheme( token.OP : Colors.Yellow, token.STRING : Colors.LightBlue, tokenize.COMMENT : Colors.LightRed, - token.NAME : Colors.White, + token.NAME : Colors.Normal, token.ERRORTOKEN : Colors.Red, _KEYWORD : Colors.LightGreen, @@ -93,7 +93,7 @@ LightBGColors = ColorScheme( token.OP : Colors.Blue, token.STRING : Colors.Blue, tokenize.COMMENT : Colors.Red, - token.NAME : Colors.Black, + token.NAME : Colors.Normal, token.ERRORTOKEN : Colors.Red, _KEYWORD : Colors.Green,