Merge pull request #12443 from xi/fix-rm-harcoded-colors
Matthias Bussonnier -
r25901:d4443d4e merge
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -48,17 +48,17 class _NoStyle(Style): pass
48
48
49
49
50 _style_overrides_light_bg = {
50 _style_overrides_light_bg = {
51 Token.Prompt: '#0000ff',
51 Token.Prompt: '#ansibrightblue',
52 Token.PromptNum: '#0000ee bold',
52 Token.PromptNum: '#ansiblue bold',
53 Token.OutPrompt: '#cc0000',
53 Token.OutPrompt: '#ansibrightred',
54 Token.OutPromptNum: '#bb0000 bold',
54 Token.OutPromptNum: '#ansired bold',
55 }
55 }
56
56
57 _style_overrides_linux = {
57 _style_overrides_linux = {
58 Token.Prompt: '#00cc00',
58 Token.Prompt: '#ansibrightgreen',
59 Token.PromptNum: '#00bb00 bold',
59 Token.PromptNum: '#ansigreen bold',
60 Token.OutPrompt: '#cc0000',
60 Token.OutPrompt: '#ansibrightred',
61 Token.OutPromptNum: '#bb0000 bold',
61 Token.OutPromptNum: '#ansired bold',
62 }
62 }
63
63
64 def get_default_editor():
64 def get_default_editor():
@@ -350,16 +350,16 class TerminalInteractiveShell(InteractiveShell):
350 # looks like. These tweaks to the default theme help with that.
350 # looks like. These tweaks to the default theme help with that.
351 style_cls = get_style_by_name('default')
351 style_cls = get_style_by_name('default')
352 style_overrides.update({
352 style_overrides.update({
353 Token.Number: '#007700',
353 Token.Number: '#ansigreen',
354 Token.Operator: 'noinherit',
354 Token.Operator: 'noinherit',
355 Token.String: '#BB6622',
355 Token.String: '#ansiyellow',
356 Token.Name.Function: '#2080D0',
356 Token.Name.Function: '#ansiblue',
357 Token.Name.Class: 'bold #2080D0',
357 Token.Name.Class: 'bold #ansiblue',
358 Token.Name.Namespace: 'bold #2080D0',
358 Token.Name.Namespace: 'bold #ansiblue',
359 Token.Name.Variable.Magic: '#ansiblue',
359 Token.Name.Variable.Magic: '#ansiblue',
360 Token.Prompt: '#009900',
360 Token.Prompt: '#ansigreen',
361 Token.PromptNum: '#ansibrightgreen bold',
361 Token.PromptNum: '#ansibrightgreen bold',
362 Token.OutPrompt: '#990000',
362 Token.OutPrompt: '#ansired',
363 Token.OutPromptNum: '#ansibrightred bold',
363 Token.OutPromptNum: '#ansibrightred bold',
364 })
364 })
365
365
@@ -383,9 +383,9 class TerminalInteractiveShell(InteractiveShell):
383 else:
383 else:
384 style_cls = name_or_cls
384 style_cls = name_or_cls
385 style_overrides = {
385 style_overrides = {
386 Token.Prompt: '#009900',
386 Token.Prompt: '#ansigreen',
387 Token.PromptNum: '#ansibrightgreen bold',
387 Token.PromptNum: '#ansibrightgreen bold',
388 Token.OutPrompt: '#990000',
388 Token.OutPrompt: '#ansired',
389 Token.OutPromptNum: '#ansibrightred bold',
389 Token.OutPromptNum: '#ansibrightred bold',
390 }
390 }
391 style_overrides.update(self.highlighting_style_overrides)
391 style_overrides.update(self.highlighting_style_overrides)
Comments 0
You need to be logged in to leave comments. Login now