##// END OF EJS Templates
Cleanup of config, renamed _xxxx_BG keus into stdout,stdin,stderr keys
Laurent Dufrechou -
Show More
@@ -48,10 +48,6 b" if sys.platform == 'darwin':"
48 48
49 49 _DEFAULT_STYLE = {
50 50 #background definition
51 'stdout' : 'fore:#0000FF',
52 'stderr' : 'fore:#007f00',
53 'trace' : 'fore:#FF0000',
54
55 51 'default' : 'size:%d' % _DEFAULT_SIZE,
56 52 'bracegood' : 'fore:#00AA00,back:#000000,bold',
57 53 'bracebad' : 'fore:#FF0000,back:#000000,bold',
@@ -269,18 +265,18 b' class ConsoleWidget(editwindow.EditWindow):'
269 265 p = self.style
270 266
271 267 #First we define the special background colors
272 if '_COMPLETE_BUFFER_BG' in p:
273 _COMPLETE_BUFFER_BG = p['_COMPLETE_BUFFER_BG']
268 if 'trace' in p:
269 _COMPLETE_BUFFER_BG = p['trace']
274 270 else:
275 271 _COMPLETE_BUFFER_BG = '#FAFAF1' # Nice green
276 272
277 if '_INPUT_BUFFER_BG' in p:
278 _INPUT_BUFFER_BG = p['_INPUT_BUFFER_BG']
273 if 'stdout' in p:
274 _INPUT_BUFFER_BG = p['stdout']
279 275 else:
280 276 _INPUT_BUFFER_BG = '#FDFFD3' # Nice yellow
281 277
282 if '_ERROR_BG' in p:
283 _ERROR_BG = p['_ERROR_BG']
278 if 'stderr' in p:
279 _ERROR_BG = p['stderr']
284 280 else:
285 281 _ERROR_BG = '#FFF1F1' # Nice red
286 282
@@ -143,15 +143,11 b' Simple graphical frontend to IPython, using WxWidgets."""'
143 143 '\x01\x1b[0;31m\x02Out[\x01\x1b[1;31m\x02$number\x01\x1b[0;31m\x02]: \x01\x1b[0m\x02',
144 144
145 145 #we define the background of old inputs
146 '_COMPLETE_BUFFER_BG' : '#000000', # RRGGBB: Black
146 'trace' : '#000000', # RRGGBB: Black
147 147 #we define the background of current input
148 '_INPUT_BUFFER_BG' : '#444444', # RRGGBB: Light black
148 'stdout' : '#444444', # RRGGBB: Light black
149 149 #we define the background when an error is reported
150 '_ERROR_BG' : '#800000', # RRGGBB: Light Red
151
152 #'stdout' : '',#fore:#0000FF',
153 #'stderr' : '',#fore:#007f00',
154 #'trace' : '',#fore:#FF0000',
150 'stderr' : '#800000', # RRGGBB: Light Red
155 151
156 152 #'bracegood' : 'fore:#0000FF,back:#0000FF,bold',
157 153 #'bracebad' : 'fore:#FF0000,back:#0000FF,bold',
General Comments 0
You need to be logged in to leave comments. Login now