| 168 | vtkPythonInteractiveInterpreter* interpreter() const { return this->Interpreter; } |
| 169 | |
| 170 | QColor foregroundColor(pqPythonShell::PrintMode mode) const |
| 171 | { |
| 172 | switch (mode) |
| 173 | { |
| 174 | case pqPythonShell::OUTPUT: |
| 175 | return (pqCoreUtilities::isDarkTheme() ? QColor(Qt::green) : QColor(Qt::darkGreen)); |
| 176 | case pqPythonShell::ERROR: |
| 177 | return (pqCoreUtilities::isDarkTheme() ? QColor(Qt::red) : QColor(Qt::darkRed)); |
| 178 | case pqPythonShell::STATUS: |
| 179 | default: |
| 180 | return pqCoreUtilities::isDarkTheme() ? QColor(Qt::cyan) |
| 181 | : QApplication::palette().color(QPalette::Highlight); |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | private: |
| 186 | /** |
no test coverage detected