diff --git a/IPython/frontend/qt/console/ipython_widget.py b/IPython/frontend/qt/console/ipython_widget.py index c60436d..71d2cc5 100644 --- a/IPython/frontend/qt/console/ipython_widget.py +++ b/IPython/frontend/qt/console/ipython_widget.py @@ -38,7 +38,7 @@ class IPythonWidget(FrontendWidget): # A dark stylesheet: white text on a black background. dark_stylesheet = """ - QPlainTextEdit { background-color: black; color: white } + QPlainTextEdit, QTextEdit { background-color: black; color: white } QFrame { border: 1px solid grey; } .error { color: red; } .in-prompt { color: lime; } @@ -198,7 +198,7 @@ class IPythonWidget(FrontendWidget): """ Restores the default IPythonWidget styling. """ self.set_styling(self.default_stylesheet, syntax_style='default') - # self.set_styling(self.dark_stylesheet, syntax_style='monokai') + #self.set_styling(self.dark_stylesheet, syntax_style='monokai') def set_editor(self, editor): """ Sets the editor to use with the %edit magic. diff --git a/IPython/frontend/qt/console/rich_ipython_widget.py b/IPython/frontend/qt/console/rich_ipython_widget.py index 4683f26..9003af7 100644 --- a/IPython/frontend/qt/console/rich_ipython_widget.py +++ b/IPython/frontend/qt/console/rich_ipython_widget.py @@ -15,17 +15,6 @@ class RichIPythonWidget(IPythonWidget): # Protected class variables. _svg_text_format_property = 1 - # We need to override this because this class uses QTextEdit. - dark_stylesheet = """ - QTextEdit { background-color: black; color: white } - QFrame { border: 1px solid grey; } - .error { color: red; } - .in-prompt { color: lime; } - .in-prompt-number { color: lime; font-weight: bold; } - .out-prompt { color: red; } - .out-prompt-number { color: red; font-weight: bold; } - """ - #--------------------------------------------------------------------------- # 'object' interface #---------------------------------------------------------------------------