From dd3be3cd339c1434a30f3c42870848d8e8825152 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Sun, 15 Aug 2021 22:45:27 +0200 Subject: [PATCH] added monospace font to editor --- openpype/modules/python_console_interpreter/window/widgets.py | 2 ++ openpype/style/style.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openpype/modules/python_console_interpreter/window/widgets.py b/openpype/modules/python_console_interpreter/window/widgets.py index 3f88dd9235..0a408a93da 100644 --- a/openpype/modules/python_console_interpreter/window/widgets.py +++ b/openpype/modules/python_console_interpreter/window/widgets.py @@ -74,6 +74,8 @@ class PythonCodeEditor(QtWidgets.QPlainTextEdit): def __init__(self, parent): super(PythonCodeEditor, self).__init__(parent) + self.setObjectName("PythonCodeEditor") + self._indent = 4 def _tab_shift_right(self): diff --git a/openpype/style/style.css b/openpype/style/style.css index 123bb2ee70..236c4e52ab 100644 --- a/openpype/style/style.css +++ b/openpype/style/style.css @@ -625,6 +625,6 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { } /* Python console interpreter */ -#PythonInterpreterOutput { +#PythonInterpreterOutput, #PythonCodeEditor { font-family: "Roboto Mono"; }