MCPcopy Create free account
hub / github.com/Kitware/ParaView / foregroundColor

Method foregroundColor

Qt/Python/pqPythonShell.cxx:170–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
185private:
186 /**

Callers 1

printStringMethod · 0.45

Calls 2

QColorClass · 0.50
colorMethod · 0.45

Tested by

no test coverage detected