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